use replace html entity with numeric xml entity
authorChristian Weiske <cweiske@cweiske.de>
Wed, 19 Sep 2012 17:11:59 +0000 (19:11 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 19 Sep 2012 17:11:59 +0000 (19:11 +0200)
src/phorkie/Renderer/Geshi.php

index 2010ead..21d36c2 100644 (file)
@@ -28,7 +28,7 @@ class Renderer_Geshi
         }
 
         return '<div class="code">'
-            . $geshi->parse_code()
+            . str_replace('&nbsp;', '&#160;', $geshi->parse_code())
             . '</div>';
     }