From dd57cf1fbb3936de325169ebc83873ea315cd228 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 14 Sep 2017 20:39:00 +0200 Subject: [PATCH] Simplify htmlescape --- Views/View.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Views/View.php b/Views/View.php index f03449053..c177e4308 100644 --- a/Views/View.php +++ b/Views/View.php @@ -213,6 +213,20 @@ class View extends ViewAbstract return htmlspecialchars($this->getText($translation, $module, $theme)); } + /** + * Print html output. + * + * @param string $text Text + * + * @return string + * + * @since 1.0.0 + */ + protected function printHtml(string $text) : string + { + return htmlspecialchars($text); + } + /** * @return RequestAbstract *