[pLog-svn] r1329 - in plugins/trunk/textparser: .
class/data/Text/Wiki/Render
mark at devel.plogworld.net
mark at devel.plogworld.net
Sun Mar 6 08:56:38 GMT 2005
Author: mark
Date: 2005-03-06 08:56:38 +0000 (Sun, 06 Mar 2005)
New Revision: 1329
Modified:
plugins/trunk/textparser/class/data/Text/Wiki/Render/Xhtml.php
plugins/trunk/textparser/plugintextparser.class.php
Log:
Modify the text_wiki "translate" option according to Paul's (text_wiki author) suggestion.
It is the same effect as I modify the core but better. Then we don't need to worry about upgrade.
Modified: plugins/trunk/textparser/class/data/Text/Wiki/Render/Xhtml.php
===================================================================
--- plugins/trunk/textparser/class/data/Text/Wiki/Render/Xhtml.php 2005-03-06 04:19:25 UTC (rev 1328)
+++ plugins/trunk/textparser/class/data/Text/Wiki/Render/Xhtml.php 2005-03-06 08:56:38 UTC (rev 1329)
@@ -2,7 +2,7 @@
class Text_Wiki_Render_Xhtml extends Text_Wiki_Render {
- var $conf = array('translate' => HTML_SPECIALCHARS);
+ var $conf = array('translate' => HTML_ENTITIES);
function pre()
{
Modified: plugins/trunk/textparser/plugintextparser.class.php
===================================================================
--- plugins/trunk/textparser/plugintextparser.class.php 2005-03-06 04:19:25 UTC (rev 1328)
+++ plugins/trunk/textparser/plugintextparser.class.php 2005-03-06 08:56:38 UTC (rev 1329)
@@ -66,6 +66,7 @@
// create and configure a wiki filter object
$wiki =& new Text_Wiki();
$wiki->setRenderConf( "xhtml", "wikilink", "view_url", "" );
+ $wiki->setRenderConf( "xhtml", "translate", HTML_SPECIALCHARS);
// transform the text
$params["text"] = $wiki->transform( $params["text"], "xhtml" );
More information about the pLog-svn
mailing list