mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02: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
|
// Convert newlines to br elements by default
|
||||||
$configurator->rootRules->enableAutoLineBreaks();
|
$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
|
// Set the rendering engine and configure it to save to the cache dir
|
||||||
$configurator->rendering->engine = 'PHP';
|
$configurator->rendering->engine = 'PHP';
|
||||||
$configurator->rendering->engine->cacheDir = $this->cache_dir;
|
$configurator->rendering->engine->cacheDir = $this->cache_dir;
|
||||||
|
@ -68,7 +68,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'[list]no item[/list]',
|
'[list]no item[/list]',
|
||||||
'<ul></ul>'
|
'<ul>no item</ul>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'[*]unparsed',
|
'[*]unparsed',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user