Source code
Revision control
Copy as Markdown
Other Tools
#data
test
#document-fragment
script
#document
| "test"
#data
<p>Hello</p>
#document-fragment
script
#document
| "<p>Hello</p>"
#data
<div>Hello<script>World</script>xxx
#document
| <div>
| "Hello"
| <script>
| "World"
| "xxx"
#data
<div>Hello<script>World</script>xxx
#config
{ "elements": ["div", "script"] }
#document
| <div>
| "Hello"
| <script>
| "World"
| "xxx"
#data
<svg>Hello<script>World</script>xxx
#document
| <svg svg>
| "Hello"
| <svg script>
| "World"
| "xxx"
#data
#document
| <img>
| onclick="2+2"
| one="two"
#data
#config
{ "attributes": ["src", "onclick", "one"]}
#document
| <img>
| onclick="2+2"
| one="two"