summaryrefslogtreecommitdiff
path: root/test/it_html.t
diff options
context:
space:
mode:
authorUrban Müller2025-02-26 18:04:24 +0100
committerUrban Müller2025-02-26 18:04:24 +0100
commit48291d1064105f40bd72e5ede776d94c25178e32 (patch)
treecb23c79b99dd81d5d6fd198e9f80e2168542e715 /test/it_html.t
parent8ba5903579c4aeb2e108f41cf9de9df3499f5c51 (diff)
downloaditools-48291d1064105f40bd72e5ede776d94c25178e32.tar.gz
itools-48291d1064105f40bd72e5ede776d94c25178e32.tar.bz2
itools-48291d1064105f40bd72e5ede776d94c25178e32.zip
decode all html entities including '
Diffstat (limited to 'test/it_html.t')
-rwxr-xr-xtest/it_html.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/it_html.t b/test/it_html.t
index 11e05dd..19b892c 100755
--- a/test/it_html.t
+++ b/test/it_html.t
@@ -296,6 +296,11 @@ is(it_html::entity_decode("ä"), "ä");
is(it_html::entity_decode("J"), "J");
is(it_html::entity_decode("J"), "J");
is(it_html::entity_decode("A"), "A");
+is(it_html::entity_decode('"'), '"');
+is(it_html::entity_decode('''), "'");
+is(it_html::entity_decode('&lt;'), "<");
+is(it_html::entity_decode('&gt;'), ">");
+is(it_html::entity_decode('&amp;'), "&");
# tests for itools extension
is(table(null), "<table></table>\n", "table() null argument");