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, 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");