1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16630] Restore clean_formatting()'s behaviour

PHPBB3-16630
This commit is contained in:
JoshyPHP
2020-11-06 23:07:30 +01:00
parent 39c3a6c3e5
commit 8a8893fbd3
4 changed files with 16 additions and 5 deletions

View File

@@ -15,6 +15,9 @@ namespace phpbb\textformatter\s9e;
/**
* Text manipulation utilities
*
* In this implementation, "plain text" refers to regular text as it would be inputted by a user.
* "Parsed text" is XML suitable to be reinserted into the database.
*/
class utils implements \phpbb\textformatter\utils_interface
{
@@ -31,7 +34,7 @@ class utils implements \phpbb\textformatter\utils_interface
// Insert a space before <s> and <e> then remove formatting
$xml = preg_replace('#<[es]>#', ' $0', $xml);
return utf8_htmlspecialchars(\s9e\TextFormatter\Utils::removeFormatting($xml));
return \s9e\TextFormatter\Utils::removeFormatting($xml);
}
/**