From 0cda83718cccce7d8492babd61794a48482874df Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 13 May 2024 15:22:07 +0200 Subject: prevent validation break on debug_texts --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_html.class b/it_html.class index af2ef8c..012e88c 100644 --- a/it_html.class +++ b/it_html.class @@ -165,7 +165,7 @@ function html($args) $p += $this->p; foreach (array('class', 'manifest') as $attr) - $attrs .= $p[$attr] ? " $attr=" . '"' . Q($p[$attr]) . '"' : ""; + $attrs .= $p[$attr] ? " $attr=" . '"' . htmlspecialchars($p[$attr]) . '"' : ""; $html = ($p['doctype'] ? $p['doctype'] : $this->doctypes[$p['htmltype']]) . "\n" . '\n" . $data . ($p['omit_endhtml'] ? '' : "\n"); -- cgit v1.2.3