escaping xml / html in tables #878
Comments
This is kind of a nasty one. The Slim test system runs the HTML, not the wiki text. As a result, elements are passed on the way they are rendered in the HTML page. Your assumption 1. is true: the About assumption 2, the map is sent to Slim as a html A short-term solution would be to unescape the contents in the fixture (call |
And my table looks like this:
So in your example, that would translate to:
Which yields the desired effect, right? |
Oh no! My "fix" caused nested hash tables to not render properly :(. Back to the drawing board... |
#886 has been merged |
I have function that expects a content that looks like
{"xml":"<script><tag>content</tag></script>"}
(as a map)
when building the table for this, it looks like
| check | functionName; | !{xml:<script><tag>content</tag></script>} | output |
This breaks the wiki rendering due to the unescaped <script> element. the function receives a completely broken xml
| check | functionName; | !{xml:!-<script><tag>content</tag></script>-!} | output |
This breaks the function as the xml is never unescaped
I assume that one of !- or !< (which didn't do anything, ended up not interpreting the !< and considering it part of the text) is supposed to
Which one should it be? and in all cases, I believe that both are broken.
The text was updated successfully, but these errors were encountered: