Found that CRAZY bug that has plagued validation for months.

git-svn-id: http://svn.automattic.com/wordpress/trunk@336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-08-24 20:53:52 +00:00
parent 2ef0d0763c
commit ba75a65103
1 changed files with 8 additions and 2 deletions

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;' => '<27>', '&#8212;' => '<27>', '&#8216;' => '<27>', '&#8217;' => '<27>',
'&#8220;' => '<27>', '&#8221;' => '<27>', '&#8226;' => '<27>', '&#8364;' => '<27>',
'<27>' => '&#8211;',
'<27>' => '&#8212;',
'<27>' => '&#8216;',
'<27>' => '&#8217;',
'<27>' => '&#8220;',
'<27>' => '&#8221;',
'<27>' => '&#8226;',
'<27>' => '&#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;',