summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2025-02-27 01:00:14 +0100
committerUrban Müller2025-02-27 01:02:43 +0100
commit229f280740af0e96dfa4ff33f49393cf518049e6 (patch)
tree96dc9452722b491dbd83d4c79960cc32d69cdde9
parent48291d1064105f40bd72e5ede776d94c25178e32 (diff)
downloaditools-229f280740af0e96dfa4ff33f49393cf518049e6.tar.gz
itools-229f280740af0e96dfa4ff33f49393cf518049e6.tar.bz2
itools-229f280740af0e96dfa4ff33f49393cf518049e6.zip
indicate that entity_decode() reverses Q()HEADmaster
-rwxr-xr-xtest/it_html.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/it_html.t b/test/it_html.t
index 19b892c..15f444d 100755
--- a/test/it_html.t
+++ b/test/it_html.t
@@ -292,6 +292,8 @@ is(
foreach (json_decode(it::file_get_contents(dirname($argv[0]) . '/U_tests.json'), true) as $test)
is(U(...$test['args']), $test['exp'], $test['name']);
+$str = "\"'<>& &amp;";
+is(it_html::entity_decode(Q($str)), $str);
is(it_html::entity_decode("&auml;"), "ä");
is(it_html::entity_decode("&#x4a;"), "J");
is(it_html::entity_decode("&#x4A;"), "J");