From e4875142e3b9f77cd5f5fbcc1e3a70885074088e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg 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: https://develop.svn.wordpress.org/trunk@133 602fd350-edb4-49c9-b593-d223f7449a82 --- b2-include/b2functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 554352cc57..972a3908ab 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) {