Go to the source code of this file.
Functions | |
textToXHTML (&$text,$allowIMG,$NoTags=FALSE) | |
Converts properly formatted text to XHTML. | |
RemoveHTML (&$text) | |
Removes HTML from the text. | |
Iparse_markup (&$text,$allowIMG,$NoTags=FALSE) | |
Parses square-bracket tags. |
This file contains several helper functions for handling articles.
Definition in file htmlparse.inc.php.
|
Parses square-bracket tags. This will replace all the square-bracket tags with their XHTML equivalents. This is currently the only place where changes need to be made if you want to create a new tag. This function is for internal use only - you are probably interested in textToXHTML. The paramaters are not documented, because they may change frequently, and are not part of the API. Definition at line 62 of file htmlparse.inc.php. References get_entry(), set_entry(), and text. Referenced by textToXHTML(). |
|
Removes HTML from the text. This should be used when submitting an article - all formatting should be done with square brackets, therefore it's safe to assume that angle brackets are meant to be mathematical "less than" and "greater than" signs.
Definition at line 45 of file htmlparse.inc.php. References text. Referenced by basic_page_content(), and basic_page_DoSummary(). |
|
Converts properly formatted text to XHTML. The text should be formatted with tags like "[b]some bold text[/b]". It will not check for valid XHTML, that should be done elsewhere.
Definition at line 24 of file htmlparse.inc.php. References Iparse_markup(), and text. Referenced by basic_page_content(), and basic_page_DoSummary(). |