summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-05-13 16:36:23 +0200
committerUrban Müller2024-05-13 16:36:23 +0200
commit61f720ab753cff5e2ab2f17725395bfe3705656a (patch)
tree5066956c98a6340bef4e70f08b111d9a15afdf14
parent0cda83718cccce7d8492babd61794a48482874df (diff)
downloaditools-61f720ab753cff5e2ab2f17725395bfe3705656a.tar.gz
itools-61f720ab753cff5e2ab2f17725395bfe3705656a.tar.bz2
itools-61f720ab753cff5e2ab2f17725395bfe3705656a.zip
be compatible with _tag
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index 012e88c..4cd34ee 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=" . '"' . htmlspecialchars($p[$attr]) . '"' : "";
+ $attrs .= $p[$attr] ? " $attr=" . '"' . htmlspecialchars($p[$attr], ENT_COMPAT, $GLOBALS['it_html']->p['charset']) . '"' : "";
$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");