aboutsummaryrefslogtreecommitdiffstats
path: root/tests/safe_mode/script_tags.html
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-03-19 03:47:16 +0000
committerWaylan Limberg <waylan@gmail.com>2008-03-19 03:47:16 +0000
commita190c3941a7bed4274fe08e92ba4ce368c1c837f (patch)
treee936f95bde7b0b06d0422f16afd125bb290cb130 /tests/safe_mode/script_tags.html
parent2db5d1c8e469d2943a6a851bc0ff3ede070e448b (diff)
downloadmarkdown-a190c3941a7bed4274fe08e92ba4ce368c1c837f.tar.gz
markdown-a190c3941a7bed4274fe08e92ba4ce368c1c837f.tar.bz2
markdown-a190c3941a7bed4274fe08e92ba4ce368c1c837f.zip
Added safe_mode to testing framework and soem tests.
Diffstat (limited to 'tests/safe_mode/script_tags.html')
-rw-r--r--tests/safe_mode/script_tags.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/safe_mode/script_tags.html b/tests/safe_mode/script_tags.html
new file mode 100644
index 0000000..cb2abfa
--- /dev/null
+++ b/tests/safe_mode/script_tags.html
@@ -0,0 +1,33 @@
+<p>This should be stripped/escaped in safe_mode.
+</p>
+&lt;script&gt;
+alert(&quot;Hello world!&quot;)
+&lt;/script&gt;
+
+<p>With blank lines.
+</p>
+&lt;script&gt;
+
+alert(&quot;Hello world!&quot;)
+
+&lt;/script&gt;
+
+<p>Now with some weirdness
+</p>
+<p><code>&lt;script &lt;!--
+alert("Hello world!")
+&lt;/script &lt;&gt;</code>`
+</p>
+<p>Try another way.
+</p>
+&lt;script &lt;!--
+alert(&quot;Hello world!&quot;)
+&lt;/script &lt;&gt;
+
+This time with blank lines.
+
+&lt;script &lt;!--
+
+alert(&quot;Hello world!&quot;)
+
+&lt;/script &lt;&gt; \ No newline at end of file