summaryrefslogtreecommitdiffstats
path: root/packages/markdown/marked/test/new/sanitize_links.md
diff options
context:
space:
mode:
Diffstat (limited to 'packages/markdown/marked/test/new/sanitize_links.md')
-rw-r--r--packages/markdown/marked/test/new/sanitize_links.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/markdown/marked/test/new/sanitize_links.md b/packages/markdown/marked/test/new/sanitize_links.md
new file mode 100644
index 00000000..1850be4e
--- /dev/null
+++ b/packages/markdown/marked/test/new/sanitize_links.md
@@ -0,0 +1,12 @@
+---
+sanitize: true
+---
+[URL](javascript:alert)
+
+[URL](vbscript:alert)
+
+[URL](javascript:alert(1))
+
+[URL](javascript&#58document;alert(1))
+
+[URL](data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K)