Skip to content
Snippets Groups Projects
Commit 886bca28 authored by Pavlo Tyshchenko's avatar Pavlo Tyshchenko
Browse files

Issue #3072029 by kevinquillen: Untrimmed text before normalizing can return...

Issue #3072029 by kevinquillen: Untrimmed text before normalizing can return empty spaces in the event that no html tags are allowed
parent 9644fc47
Branches 2.0.x
Tags 2.1.0
No related merge requests found
......@@ -245,6 +245,8 @@ function advanced_text_formatter_trim_text($text, $options) {
}
}
$text = trim($text);
if (!empty($options['html'])) {
$text = Html::normalize($text);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment