Quick search:

PntHttpRequest
PntRequestHandler
PntSite
PntStringConverter
toHtml
__construct
_exists
addMonthName
arrayToLabel
checkTime
convert
convertDT
convertToBoolean
convertToDate
convertToNumber
convertToObject
convertToString
convertToTime
convertToTimestamp
formatDT
fromLabel
fromRequestData
getDateTimezone
getErrorInvalidNumber
getLabelCharset
getLanguageId
getTimeStampSeparators
html_version_entOptions
initFromProp
labelFromBoolean
labelFromDate
labelFromNumber
labelFromObject
labelFromString
labelFromTime
labelFromTimestamp
sanitizeHtml
sanitizeString
setHtml_version_ent
splitDT
splitDtNoSeparators
toJsLiteral
toLabel
urlEncode
usKbConvert4Uropean

	
	// methods converting to user interface string ---------------------------
	
	/** Convert a string to HTML. 
	* @param string $string The string to convert
	* @param boolean $breaksForLineFeeds Wheather to convert line feeds to <BR>
	* $param boolean $preformatAndTab if set > 0 convert multiple spaces to non-breaking spaces
		and replace tabs by the specified number of non-breaking spaces
	* @return String with HTML */
	function toHtml($string, $breaksForLineFeeds=false, $preformatAndTab=0) {		
		if ($this->type=='html') return $string;
        if ($string===null) return '';
		$result = htmlspecialchars($string, ENT_QUOTES | $this->html_version_flag, $this->getLabelCharset());
		if ($breaksForLineFeeds) {
			$br = $this->html_version_ent=='ENT_XML1' || $this->html_version_ent=='ENT_XHTML'
				? "<br />\n" : "<br>\n";
			$result = preg_replace("/\r\n|\n\r|\n|\r/", $br, $result);
		}
		if ($preformatAndTab) {
			$result = str_replace("\t", str_pad(' ', $preformatAndTab), $result);
			$result = str_replace("  ", "&nbsp;&nbsp;", $result);
			$result = str_replace("&nbsp; ", "&nbsp;&nbsp;", $result);
		}
		return $result;
	}
Copyright (c) MetaClass, 2003-

This code is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

Click here for a copy of the license or see http://www.gnu.org/licenses/ .