summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2013-03-27 16:28:55 +0000
committerUrban Müller2013-03-27 16:28:55 +0000
commitcd128b312c1025c4090c0dfe7c3cd0838c5156e8 (patch)
tree2d6d70f29dadbf41b7bc340d8dc9d9b368ed73d0
parente21ed9ee1bbd7134e3539e849de2e36d0ac076f5 (diff)
downloaditools-cd128b312c1025c4090c0dfe7c3cd0838c5156e8.tar.gz
itools-cd128b312c1025c4090c0dfe7c3cd0838c5156e8.tar.bz2
itools-cd128b312c1025c4090c0dfe7c3cd0838c5156e8.zip
::sanitize test
-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 bc3f8e5..bcd1f48 100755
--- a/tests/it_html.t
+++ b/tests/it_html.t
@@ -170,6 +170,12 @@ is(
);
is(
+ it_html::sanitize('<div></div>'),
+ '',
+ 'empty tags removal',
+);
+
+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%C3%BCrich%3E&bar[qux][gn%C3%B6p]=fasel',
'U() with nested arrays'