summaryrefslogtreecommitdiff
path: root/tests/it_html.t
diff options
context:
space:
mode:
authorChristian Schneider2008-12-08 17:18:12 +0000
committerChristian Schneider2008-12-08 17:18:12 +0000
commit8c3977ce0f6395eb79be1b2579830b4193ea1605 (patch)
tree22f59cc61ee445e0e4e15aa0f7616af0e80aea08 /tests/it_html.t
parent5502f0e89648b4de978d70c5841c340830ec7943 (diff)
downloaditools-8c3977ce0f6395eb79be1b2579830b4193ea1605.tar.gz
itools-8c3977ce0f6395eb79be1b2579830b4193ea1605.tar.bz2
itools-8c3977ce0f6395eb79be1b2579830b4193ea1605.zip
Fix it_html::sanitize with b/br combination (tag prefix of other tag bug)
Diffstat (limited to 'tests/it_html.t')
-rwxr-xr-xtests/it_html.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/it_html.t b/tests/it_html.t
index 86afbf8..e77a0a1 100755
--- a/tests/it_html.t
+++ b/tests/it_html.t
@@ -116,6 +116,12 @@ is(
);
is(
+ it_html::sanitize('<b>a<br>b</b>'),
+ "<b>a<br />b</b>",
+ 'it_html::sanitize with b and br (tag prefix of other tag bug)'
+);
+
+is(
U("/foo.html", array('bar' => array('gna' => 42, 'qux' => array('quux' => "<Zürich>", 'gnöp' => "fasel")))),
'/foo.html?bar[gna]=42&bar[qux][quux]=%3CZ%FCrich%3E&bar[qux][gn%F6p]=fasel',
'U() with nested arrays'