Clipped convert_chars, it's too slow and most people won't notice. We need to do the conversion on insert rather than display.

git-svn-id: http://svn.automattic.com/wordpress/trunk@133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-06-01 11:30:13 +00:00
parent 1700bba60e
commit a18d531876
1 changed files with 5 additions and 0 deletions

View File

@ -225,6 +225,10 @@ function convert_chars($content,$flag="html") { // html/unicode entities output,
# $content = str_replace("&","&",$content);
$content = strtr($content, $b2_htmltrans);
return $content;
// the following is the slowest. code. ever.
/*
for ($i=0; $i<strlen($content); $i=$i+1) {
$j = substr($content,$i,1);
$jnext = substr($content,$i+1,1);
@ -268,6 +272,7 @@ function convert_chars($content,$flag="html") { // html/unicode entities output,
$newcontent = str_replace("<hr>","<hr />",$newcontent);
return($newcontent);
*/
}
function convert_bbcode($content) {