WIKINDX METHODS

Method:
dbToHtmlTidy()

Class:
HTML

Method Call:
include_once("core/html/HTML.php");
$html = new HTML();
STRING $html->dbToHtmlTidy(STRING: $string);

Description:
Used for ensuring proper HTML formatting of data pulled from the database to be printed to the web browser.

It returns a formatted string suitable for printing to the web browser that has been parsed by codeToHtml(), nlToHtml() and PHP's htmlspecialchars() and stripslashes() functions.

Usage:
This should be used on everything that comes from the database and is to be printed on the web page except when that data is to be displayed in a HTML form element such as text input or textarea. For that, use dbToFormTidy()

WIKINDX home      WIKINDX usage      WIKINDX classes