mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Also handle inline HTML comments
This commit is contained in:
@@ -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 }}
|
||||
`
|
||||
|
Reference in New Issue
Block a user