WIKINDX METHODS

Method:
nlToHtml()

Class:
HTML

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

Description:
Returns a string in which the newline characters \012 and \015 (usually entered in form textarea boxes) have been converted to appropriate HTML codes. Multiple newline characters are converted to two <br /> tags and single newline characters are converted to one <br /> tag. This method is automatically called in dbToHtmlTidy() and should probably not need to be used anywhere else.

Usage:

WIKINDX home      WIKINDX usage      WIKINDX classes