mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +00:00
Add escaped language output
This commit is contained in:
parent
c05086c233
commit
c4927f588f
|
|
@ -196,6 +196,11 @@ class View extends ViewAbstract
|
||||||
return $this->app->l11nManager->getText($this->l11n->getLanguage(), $module, $theme, $translation);
|
return $this->app->l11nManager->getText($this->l11n->getLanguage(), $module, $theme, $translation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getHtml(string $translation, string $module = null, string $theme = null) : string
|
||||||
|
{
|
||||||
|
return htmlspecialchars($this->getText($translation, $module, $theme));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return RequestAbstract
|
* @return RequestAbstract
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user