mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/11768] Allowed text in places where text is not valid HTML
PHPBB3-11768
This commit is contained in:
parent
93c53ed52d
commit
3e5ee87b15
@ -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;
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user