From a18d531876b36466837da48d93961fd91dfa16e8 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 1 Jun 2003 11:30:13 +0000 Subject: [PATCH] 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 --- b2-include/b2functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 554352cc5..972a3908a 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -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","
",$newcontent); return($newcontent); + */ } function convert_bbcode($content) {