Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-inside/convert-to-html.php
<?php
	/* I feel this function is no more useful because of TinyMCE
	function ConvertToHTML($String, $Html = true)
	{
		$String = str_replace("'", "\'", $String);
$String = str_replace("
", "<br />", $String); //a new line is a new line
		if($Html == false)
		{
			$String = str_replace('"', "&quot;", $String);
			$String = str_replace("'", "&#39;", $String);
			$String = str_replace("<", "&lt;", $String);
			$String = str_replace(">", "&gt;", $String);
		}
		return($String); 
	}
	*/
	/* but some files still require it! */
	function ConvertToHTML($String, $HTML = true)
	{
		/* do nothing */
		return $String;
	}
?>
Return current item: Prsaar Social Networking Platform