mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-13 18:48:40 +00:00
Simplify htmlescape
This commit is contained in:
parent
34c465766e
commit
dd57cf1fbb
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user