/var-www-hotglue/hotglue.org-test/dev/html_parse.inc.php File Reference

Go to the source code of this file.

Functions

 html_encode_str_smart ($html)
 html_parse ($html, $recursive=false)
 html_parse_elem ($html, $recursive=false)

Function Documentation

html_encode_str_smart ( html  ) 

try to turn a mixture of html code an plain text into valid html

Parameters:
string $html input
Returns:
string encoded output

Definition at line 23 of file html_parse.inc.php.

html_parse ( html,
recursive = false 
)

parse a string containing html elements

this function decodes html's special characters except for the content (when it too is not being parsed). this function is more fragile than html_parse_elem() when it comes to malformatted input.

Parameters:
string $html input string
bool $recursive also parse children elements
Returns:
array parsed representation

Definition at line 226 of file html_parse.inc.php.

html_parse_elem ( html,
recursive = false 
)

parse exactly one html element

this function decodes html's special characters except for the content (when it too is not being parsed). this function is less fragile than html_parse() when it comes to malformatted input.

Parameters:
string $html input string (must start and end with the element's tag)
bool $recursive also parse children elements
Returns:
array parsed representation

Definition at line 328 of file html_parse.inc.php.

Generated on Wed Jul 11 19:43:16 2012 for hotglue by  doxygen 1.6.3