mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
1700bba60e
commit
a18d531876
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user