sj4nz Hello everyone, I'm working on a plugin that selectively renders small fragments of HTML into the output of a page, but it renders with the < > entities instead the <> in my HTML. An example of my plugin's syntax looks like: "{[btn:id,Label]}" and is translated into <button action="id">Label</button> in the output. How can I escape my plugin's insertions without resorting to a global enabling of the <html> feature? Thanks in advance, Simon
turnermm This is the result of using: $renderer->doc .= $renderer->_xmlEntities which converts HTML items into entities.
sj4nz This doesn't look like something I can patch over with an action plugin unless I write a new renderer plugin to work along side it, would you agree? Simon
turnermm The render method is included in syntax plugins, not action plugins. I'm not sure what exactly you are trying to do and at what stage of processing with your action plugin. Which event are you using?
sj4nz Right now I'm hooking into IO_WIKIPAGE_READ with an action, I'm looking at how the syntax plugins work now.
turnermm You probably want a syntax plugin. But if you are using an action plugin, the relevant events are generally TPL_ACT_RENDER and TPL_CONTENT_DISPLAY. See http://www.dokuwiki.org/devel:events_list.