',
'it_html::sanitize tag soup'
);
it_html::configure(array('charset' => "utf-8"));
is(
it_html::sanitize('qüx'),
"q\xc3\xbcx",
'it_html::sanitize with utf-8'
);
it_html::configure(array('charset' => "iso-8859-1"));
is(
it_html::sanitize('qüx'),
"q\xfcx",
'it_html::sanitize with latin1'
);
is(
it_html::sanitize('a b'),
"a 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' => "", 'gnöp' => "fasel")))),
'/foo.html?bar[gna]=42&bar[qux][quux]=%3CZ%FCrich%3E&bar[qux][gn%F6p]=fasel',
'U() with nested arrays'
);
is(
U("Jet d'eau"),
'Jet+d%27eau',
'U() with single quotes in URL',
);
is(
U('%% %1%x %1x%x1%xx%11%ff%FF'),
'%25%25+%251%25x+%251x%25x1%25xx%11%ff%FF',
'U() quoting of % if not followed by 2 hex digits'
);
is(
U('a\\b'),
'a/b',
'U() converting of \ to /'
);
?>