Parcourir la source

Fixed cases where Atom Renderer renders a Unicode non-breaking space as &nbsp HTML entity during Tidy cleanup. Fixes ZF-9566

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22054 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic il y a 15 ans
Parent
commit
0f8770f91f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      library/Zend/Feed/Writer/Renderer/Entry/Atom.php

+ 2 - 1
library/Zend/Feed/Writer/Renderer/Entry/Atom.php

@@ -337,7 +337,8 @@ class Zend_Feed_Writer_Renderer_Entry_Atom
             $tidy = new tidy;
             $config = array(
                 'output-xhtml' => true,
-                'show-body-only' => true
+                'show-body-only' => true,
+                'quote-nbsp' => false
             );
             $encoding = str_replace('-', '', $this->getEncoding());
             $tidy->parseString($content, $config, $encoding);