diff options
author | Christian Schneider | 2007-02-12 15:21:38 +0000 |
---|---|---|
committer | Christian Schneider | 2007-02-12 15:21:38 +0000 |
commit | 3c0a27cb291e5237d7b79d20b3449e266729845a (patch) | |
tree | 46d7ef2720b71ab5890884256d44174aeb93c9f8 /tests | |
parent | e923bc4ab388d00ec757987003e39918756a7c59 (diff) | |
download | itools-3c0a27cb291e5237d7b79d20b3449e266729845a.tar.gz itools-3c0a27cb291e5237d7b79d20b3449e266729845a.tar.bz2 itools-3c0a27cb291e5237d7b79d20b3449e266729845a.zip |
Added test for it_html::sanitize()
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/html.t | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/html.t b/tests/html.t index 3bc603b..85f7818 100755 --- a/tests/html.t +++ b/tests/html.t @@ -80,5 +80,14 @@ is( "it_html inheritance" ); +is( + it_html::sanitize(' <p><a href="http://www.flickr.com/people/swisspics/">swisspics</a> posted < < ä & yesterday <b>a <i>photo</i></b> <b><i>tag missmatch</b></i>:</p><br><br /> + +<p><a href="javascript:window.close()" title="Wolken"><img src="http://farm1.static.flickr.com/177/377214376_bcba167a7d_m.jpg" width="240" height="180" alt="Wolken" style="border: 1px solid #ddd;" /></a></p> +'), + ' <a href="http://www.flickr.com/people/swisspics/">swisspics</a> posted < < ä & yesterday a <i>photo</i> <i>tag missmatch</i>:<br /><br /> <p><img src="http://farm1.static.flickr.com/177/377214376_bcba167a7d_m.jpg" /></p> ', + 'it_html::sanitize tag soup' +); + ?> |