From 229f280740af0e96dfa4ff33f49393cf518049e6 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 27 Feb 2025 01:00:14 +0100 Subject: indicate that entity_decode() reverses Q() --- test/it_html.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/it_html.t') 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 = "\"'<>& &"; +is(it_html::entity_decode(Q($str)), $str); is(it_html::entity_decode("ä"), "ä"); is(it_html::entity_decode("J"), "J"); is(it_html::entity_decode("J"), "J"); -- cgit v1.2.3