Skip to content
Snippets Groups Projects
Commit 84ab1725 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fixed storing of WYSIWYG text as HTML, closes #1178

Closes #1178

Merge request studip/studip!878
parent 43990fc0
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,12 @@ class I18n_formattedInput extends Input ...@@ -44,6 +44,12 @@ class I18n_formattedInput extends Input
public function getRequestValue() public function getRequestValue()
{ {
return \Request::i18n($this->name); $output = \Request::i18n($this->name);
if (\Studip\Markup::editorEnabled()) {
$output = \Studip\Markup::purifyHtml(
\Studip\Markup::markAsHtml($output)
);
}
return $output;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment