]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/plugins/resources/markdown.html
Add a whitelist of protocols for URLs
[github/shaarli/Shaarli.git] / tests / plugins / resources / markdown.html
index 07a5a32e4743b91046f6ac34715430dcf2c1c665..844a6f31dbb0fa18c9a3777b21e57f11165dee22 100644 (file)
 next #foo</code></pre>
 <p>Block:</p>
 <pre><code>lorem ipsum #foobar http://link.tld
-#foobar http://link.tld</code></pre></div>
\ No newline at end of file
+#foobar http://link.tld</code></pre>
+<p><a href="?123456">link</a><br />
+<img src="/img/train.png" alt="link" /><br />
+<a href="http://test.tld/path/?query=value#hash">link</a><br />
+<a href="http://test.tld/path/?query=value#hash">link</a><br />
+<a href="https://test.tld/path/?query=value#hash">link</a><br />
+<a href="ftp://test.tld/path/?query=value#hash">link</a><br />
+<a href="magnet:test.tld/path/?query=value#hash">link</a><br />
+<a href="http://alert('xss')">link</a><br />
+<a href="http://test.tld/path/?query=value#hash">link</a></p></div>
\ No newline at end of file