aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/escaped_links.html3
-rw-r--r--tests/misc/escaped_links.txt7
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/misc/escaped_links.html b/tests/misc/escaped_links.html
new file mode 100644
index 0000000..eb4a118
--- /dev/null
+++ b/tests/misc/escaped_links.html
@@ -0,0 +1,3 @@
+<p>Backslashed in links:</p>
+<p><a href="/query?q=go:GO\:0000307">q=go:GO\:0000307</a></p>
+<p><a href="/query?q=go:GO\:0000308" title="/query?q=go:GO\:0000308">q=go:GO\:0000308</a></p> \ No newline at end of file
diff --git a/tests/misc/escaped_links.txt b/tests/misc/escaped_links.txt
new file mode 100644
index 0000000..25d5e3f
--- /dev/null
+++ b/tests/misc/escaped_links.txt
@@ -0,0 +1,7 @@
+Backslashed in links:
+
+[q=go:GO\\:0000307](/query?q=go:GO\\:0000307)
+
+[q=go:GO\\:0000308][foo]
+
+[foo]: /query?q=go:GO\:0000308 "/query?q=go:GO\:0000308"