Found that CRAZY bug that has plagued validation for months.

git-svn-id: https://develop.svn.wordpress.org/trunk@336 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2003-08-24 20:53:52 +00:00
parent 1e34aaddf1
commit 045f4032b7

View File

@@ -52,8 +52,14 @@ $b2_htmltrans = array_flip(get_html_translation_table(HTML_ENTITIES));
$b2_htmltrans['<'] = '<'; # preserve HTML
$b2_htmltrans['>'] = '>'; # preserve HTML
$b2_htmltransbis = array(
'&#8211;' => '', '&#8212;' => '—', '&#8216;' => '', '&#8217;' => '',
'&#8220;' => '“', '&#8221;' => '”', '&#8226;' => '•', '&#8364;' => '€',
'' => '&#8211;',
'' => '&#8212;',
'' => '&#8216;',
'' => '&#8217;',
'“' => '&#8220;',
'”' => '&#8221;',
'•' => '&#8226;',
'€' => '&#8364;',
'&lt;' => '&#60;', # preserve fake HTML
'&gt;' => '&#62;', # preserve fake HTML
'&sp;' => '&#32;', '&excl;' => '&#33;', '&quot;' => '&#34;', '&num;' => '&#35;', '&dollar;' => '&#36;', '&percnt;' => '&#37;', '&amp;' => '&#38;', '&apos;' => '&#39;', '&lpar;' => '&#40;', '&rpar;' => '&#41;',