diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-02-20 06:03:05 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-04-02 19:16:02 +0200 |
commit | 3e5ee87b15c70fbfc246b6d8f6d18a186d11d83a (patch) | |
tree | 17093c45ebbbd3478db469d756c74e2cf56c7ca1 | |
parent | 93c53ed52da7ec2e26bf97b3cc5bba1f1ca403bb (diff) | |
download | forums-3e5ee87b15c70fbfc246b6d8f6d18a186d11d83a.tar forums-3e5ee87b15c70fbfc246b6d8f6d18a186d11d83a.tar.gz forums-3e5ee87b15c70fbfc246b6d8f6d18a186d11d83a.tar.bz2 forums-3e5ee87b15c70fbfc246b6d8f6d18a186d11d83a.tar.xz forums-3e5ee87b15c70fbfc246b6d8f6d18a186d11d83a.zip |
[ticket/11768] Allowed text in places where text is not valid HTML
PHPBB3-11768
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/factory.php | 3 | ||||
-rw-r--r-- | tests/text_formatter/s9e/default_formatting_test.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index 557645b0d6..a6639976c4 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -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; diff --git a/tests/text_formatter/s9e/default_formatting_test.php b/tests/text_formatter/s9e/default_formatting_test.php index b28c8b157e..94d46a58b7 100644 --- a/tests/text_formatter/s9e/default_formatting_test.php +++ b/tests/text_formatter/s9e/default_formatting_test.php @@ -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', |