Also handle inline HTML comments

This commit is contained in:
Bjørn Erik Pedersen
2025-01-21 18:52:58 +01:00
parent f1de5d2a04
commit 637995ba8f
2 changed files with 33 additions and 10 deletions

View File

@@ -885,10 +885,27 @@ title: "p1"
<img border="0" src="pic_trulli.jpg" alt="Trulli">
-->
XSS
## XSS
<!-- --><script>alert("I just escaped the HTML comment")</script><!-- -->
## More
This is a <!--hidden--> word.
This is a <!-- hidden--> word.
This is a <!-- hidden --> word.
This is a <!--
hidden --> word.
This is a <!--
hidden
--> word.
-- layouts/_default/single.html --
{{ .Content }}
`