summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
1 files changed, 2 insertions, 0 deletions
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(['<!--' => '\\x3C!--', '<script' => '\\x3Cscript', '</script' => '\\x3C/script'], $v), $args);
+
if (($this->p['htmltype'][0] == 'x') && $args[0] && ((array)$args[0] === array_values((array)$args[0])))
{
array_unshift($args, "<!--//--><![CDATA[//><!--\n");