html: Fix example blocks - escape html
While example blocks do not render inline markup and are thus parsed raw in some way, their contents are not literal html and thus still need to be html escaped.
This commit is contained in:
parent
115a8b9c1b
commit
c68d931100
5 changed files with 9 additions and 3 deletions
4
org/testdata/blocks.html
vendored
4
org/testdata/blocks.html
vendored
|
@ -32,9 +32,11 @@ empty lines!
|
|||
|
||||
it also has multiple parameters
|
||||
|
||||
src, example & export blocks treat their content as raw text
|
||||
src, example & export blocks treat their content as raw text
|
||||
/inline/ *markup* is ignored
|
||||
and whitespace is honored and not removed
|
||||
|
||||
content of example blocks is still html escaped - see <script>alert("escaped")</script>
|
||||
</pre>
|
||||
<pre class="example">
|
||||
examples like this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue