From 6b5c81c9ee37f37e7bf228dc2f688b945c6c8663 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 25 Jul 2023 17:37:30 +0200 Subject: Simplify: Do not strip tags as this can lead to empty titles --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3