mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11768] Preserve comments in custom BBCodes
PHPBB3-11768
This commit is contained in:
@@ -180,6 +180,10 @@ class factory implements \phpbb\textformatter\cache_interface
|
||||
// Don't automatically ignore text in places where text is not allowed
|
||||
$configurator->rulesGenerator->remove('IgnoreTextIfDisallowed');
|
||||
|
||||
// Don't remove comments and instead convert them to xsl:comment elements
|
||||
$configurator->templateNormalizer->remove('RemoveComments');
|
||||
$configurator->templateNormalizer->add('TransposeComments');
|
||||
|
||||
// Set the rendering engine and configure it to save to the cache dir
|
||||
$configurator->rendering->engine = 'PHP';
|
||||
$configurator->rendering->engine->cacheDir = $this->cache_dir;
|
||||
|
Reference in New Issue
Block a user