From 5daa541f4f81e12d69ae0764baa44284af419f72 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 15 Aug 2024 18:12:24 +0200 Subject: [PATCH] templateparser addtext html --- phpwf/plugins/class.templateparser.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/phpwf/plugins/class.templateparser.php b/phpwf/plugins/class.templateparser.php index 09854989..7875200a 100644 --- a/phpwf/plugins/class.templateparser.php +++ b/phpwf/plugins/class.templateparser.php @@ -365,9 +365,13 @@ class TemplateParser { echo '

'; } } - function SetText($_var, $_value) - { - $this->VARARRAY[$_var]= $this->htmlspecialchars($_value); + function SetText($_var, $_value, $html = false) + { + if(!$html) + { + $_value = $this->htmlspecialchars($_value); + } + $this->VARARRAY[$_var]= $_value; } function AddText($_var,$_value, $variable = false){