summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-05-13 15:22:07 +0200
committerUrban Müller2024-05-13 15:22:07 +0200
commit0cda83718cccce7d8492babd61794a48482874df (patch)
tree082a348b385c4be768ad7dbfa36a7c225d7ea0de
parentd4515d6d78e3902c557b8957e74e250424d7932b (diff)
downloaditools-0cda83718cccce7d8492babd61794a48482874df.tar.gz
itools-0cda83718cccce7d8492babd61794a48482874df.tar.bz2
itools-0cda83718cccce7d8492babd61794a48482874df.zip
prevent validation break on debug_texts
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
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" .
'<html ' . ($p['htmltype'] == "xhtml" ? 'xmlns="http://www.w3.org/1999/xhtml" ' : '') . ($p['htmltype'] == "xhtml-mobile" ? 'xml:lang' : 'lang') . "=\"{$p['lang']}\"$attrs>\n" . $data . ($p['omit_endhtml'] ? '' : "</html>\n");