diff options
author | Christian Schneider | 2023-07-25 17:37:30 +0200 |
---|---|---|
committer | Christian Schneider | 2023-07-25 17:37:30 +0200 |
commit | 6b5c81c9ee37f37e7bf228dc2f688b945c6c8663 (patch) | |
tree | 0c204e61bcdd0b69294903b7dfa5e98cca2d56f4 | |
parent | 3fd20a86f3af32ebba1e2ec14ea18a0056c15919 (diff) | |
download | itools-6b5c81c9ee37f37e7bf228dc2f688b945c6c8663.tar.gz itools-6b5c81c9ee37f37e7bf228dc2f688b945c6c8663.tar.bz2 itools-6b5c81c9ee37f37e7bf228dc2f688b945c6c8663.zip |
Simplify: Do not strip tags as this can lead to empty titles
-rw-r--r-- | it_html.class | 2 |
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 |