1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/11768] Allowed text in places where text is not valid HTML

PHPBB3-11768
This commit is contained in:
JoshyPHP 2015-02-20 06:03:05 +01:00
parent 93c53ed52d
commit 3e5ee87b15
2 changed files with 4 additions and 1 deletions

View File

@ -162,6 +162,9 @@ class factory implements \phpbb\textformatter\cache
// Convert newlines to br elements by default
$configurator->rootRules->enableAutoLineBreaks();
// Don't automatically ignore text in places where text is not allowed
$configurator->rulesGenerator->remove('IgnoreTextIfDisallowed');
// Set the rendering engine and configure it to save to the cache dir
$configurator->rendering->engine = 'PHP';
$configurator->rendering->engine->cacheDir = $this->cache_dir;

View File

@ -68,7 +68,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
),
array(
'[list]no item[/list]',
'<ul></ul>'
'<ul>no item</ul>'
),
array(
'[*]unparsed',