summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorChristian Schneider2023-07-25 17:37:30 +0200
committerChristian Schneider2023-07-25 17:37:30 +0200
commit6b5c81c9ee37f37e7bf228dc2f688b945c6c8663 (patch)
tree0c204e61bcdd0b69294903b7dfa5e98cca2d56f4 /it_html.class
parent3fd20a86f3af32ebba1e2ec14ea18a0056c15919 (diff)
downloaditools-6b5c81c9ee37f37e7bf228dc2f688b945c6c8663.tar.gz
itools-6b5c81c9ee37f37e7bf228dc2f688b945c6c8663.tar.bz2
itools-6b5c81c9ee37f37e7bf228dc2f688b945c6c8663.zip
Simplify: Do not strip tags as this can lead to empty titles
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 2700e99..970e8f0 100644
--- a/it_html.class
+++ b/it_html.class
@@ -220,7 +220,7 @@ function head($args = array())
if (!empty($p['cssinline']))
$header .= tag('style', array('type' => "text/css", "\n" . preg_replace(array('/\s*\/\*[^\*]+\*\//Um', '/\s*\{\s*/', '/;\s+/'), array('', '{', ';'), $p['cssinline'])));
- $header .= $p['head'] . ($p['title'] ? tag('title', strip_tags(Q(strip_tags($p['title'])))) : ""); # remove coloring by .texts and .q debug param
+ $header .= $p['head'] . ($p['title'] ? tag('title', Q($p['title'])) : "");
if($this->p['htmltype'] == "xhtml-mobile" && strpos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator'))
header("Content-Type: application/xhtml+xml; charset={$this->p['charset']}"); # for validation