cgi/html_utils.h File Reference

HTML utilities/helper functions. More...


Functions

char * html_special_chars (char *where)
 Replace characters with their HTML equivalents.
char * replace (char *where, char *what, char *to)
 Replace all occurence of certain substring with other string.
char * strip_tags (char *where)
 Strip HTML tags.


Detailed Description

HTML utilities/helper functions.

Author:
Vladimir Pavluk, 2006-2007
Utility functions, considered useful for HTML handling.

Function Documentation

char* html_special_chars ( char *  where  ) 

Replace characters with their HTML equivalents.

Replace characters with their HTML entities. You are responsible for freeing result.

Parameters:
where string to process.
Returns:
processed string.

char* replace ( char *  where,
char *  what,
char *  to 
)

Replace all occurence of certain substring with other string.

Replaces all occurences of certain string with other string. You are responsible for freeing result.

Parameters:
where string to process.
what substring to replace.
to string to replace with.
Returns:
processed string.

char* strip_tags ( char *  where  ) 

Strip HTML tags.

Strips HTML tags from the input string. You are responsible for freeing result.

Parameters:
where string to process.
Returns:
processed string.


Generated on Tue Jun 17 17:31:14 2008 for Template Engine Library by  doxygen 1.5.5