[dokuwiki] Re: protected plugin and quotes?

Martin Tschofen wrote:
I'm working on a simple plugin that wraps itself around text. Any of the
text inside should not be changed.
I set the type to 'protected' and the allowedType to a blank array (
function getAllowedTypes() { return array(''); }
).

Everything works except the quotes get changed to the html quote entity. How
can I avoid the automatic conversion of characters?

Thanks in advance...martin

There is no automatic conversion of quote characters. Conversion is normally done by filtering the output through htmlspecialchars() with ENT_QUOTES. That conversion isn't automatic, but it will occur if you use renderer->xmlEntities() method or hsc() function.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: