templateparser addtext html

This commit is contained in:
OpenXE 2024-08-15 18:12:24 +02:00
parent 5f590c586c
commit 5daa541f4f

View File

@ -365,9 +365,13 @@ class TemplateParser {
echo '<br><br>';
}
}
function SetText($_var, $_value)
function SetText($_var, $_value, $html = false)
{
$this->VARARRAY[$_var]= $this->htmlspecialchars($_value);
if(!$html)
{
$_value = $this->htmlspecialchars($_value);
}
$this->VARARRAY[$_var]= $_value;
}
function AddText($_var,$_value, $variable = false){