[pmwiki-users] Question about EnableHtml

Clemens Gruber cgruber at uni-osnabrueck.de
Thu May 11 17:59:24 CDT 2006

Heather Logas wrote:

>So I was looking at this:
>Say [a-z!]+ to match all HTML tags (including comments). 
>But I don't understand how to put this in context in the config file.  Would it be something like:

Hi, yes "something like". Try this:

Sometimes there is a problem when you are using this cookbook and 
copy'n'paste code. A blank at the beginning of a line couses a treatment 
as preformated code (it won't be interpreted). So you can manually 
delete all banks or you can use instead EnableHtml the alternative 
method described by Hagan http://pmwiki.org/wiki/Cookbook/EnableHTML 
with the Markup

"'<:block>'.Keep(str_replace(array('&gt;', '&lt;', '&amp;'),
array('>', '<', '&'), PSS('$1')))");

Put it "as is" in config.php.

Now you can use the "PmWiki-Tags" (:html:) and (:htmlend:) for instance
(:html:)<h2>Hi!</h2>Some text.(:htmlend:)

Hope this helps!


More information about the pmwiki-users mailing list