From 888af9543cb9b632b0671284771ca6a82aed47dd Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 25 Sep 2023 16:31:54 +0200 Subject: escape dangerous strings inside javascript, including env = --- test/it_html.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/it_html.t b/test/it_html.t index ae11ad1..e6477da 100755 --- a/test/it_html.t +++ b/test/it_html.t @@ -288,3 +288,5 @@ is(it_html::entity_decode("’"), "'", "it_html::entity_decode numeric decim is(it_html::entity_decode("࿿"), " ", "it_html::entity_decode invalid numeric hex entity"); is(it_html::entity_decode("ϧ"), " ", "it_html::entity_decode invalid numeric decimal entity"); is(it_html::entity_decode("‹"), " ", "it_html::entity_decode entity von 0x80-0x9f"); + +is(js('