Re: [SMW-devel] Extension ResultPrinter output escaping

2008-03-17 Thread Matt Williamson
Markus, > Hence it > seems to be impossible to generally switch #ask to return full HTML, > even if > it can be done for parser functions in MediaWiki. Suspected as much. > What we do in such cases (timeline is a good example) is to encode > all data in > admissible HTML elements (span, div

Re: [SMW-devel] Extension ResultPrinter output escaping

2008-03-17 Thread Markus Krötzsch
The issue here is that #ask returns wiki text on purpose, so that one might also use wiki-text based templates for #ask output. For example you can format #ask with a template (format=template) that includes piped table syntax for wiki tables. The table header can still be written in front of th

Re: [SMW-devel] Extension ResultPrinter output escaping

2008-03-16 Thread Matt Williamson
Nope, didn't work...looks like it's being run through the same parser/sanitizer that regular wiki text goes through...so if that had worked, they'd have big XSS problems, so that's good I guess... BTW, only the parser function does this...the tag hook works fine! I expected as much, though-

Re: [SMW-devel] Extension ResultPrinter output escaping

2008-03-16 Thread S Page
Matt Williamson wrote: > I wrote a class that subclasses SMWResultPrinter, and it works, except > that when it returns its output, it's translating HTML tags into < > and >--at least partially. Surround your output with ... tags? Use the HTML entities < and > for < and > ? Guessing away, -

[SMW-devel] Extension ResultPrinter output escaping

2008-03-16 Thread Matt Williamson
Markus/List: Thanks for the earlier help, I was able to get that working in very short order. Now I ran into another problem... I wrote a class that subclasses SMWResultPrinter, and it works, except that when it returns its output, it's translating HTML tags into < and >--at least partiall