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 = --- it_html.class | 2 ++ test/it_html.t | 2 ++ 2 files changed, 4 insertions(+) diff --git a/it_html.class b/it_html.class index 58784cf..716e066 100644 --- a/it_html.class +++ b/it_html.class @@ -561,6 +561,8 @@ static function U(...$args) */ function js($args) { + $args = it::map(fn($v) => it::replace(['