- Affected version
- 2.3.12
If you select [color=red], and click quote/reply in the pop-up this strips the plain tags and leaves a dangling color tag. This also applies to copy & paste support.
In
This should be;
Then the paste javascript handler can convert
In
XF\BbCode\Renderer\Html::addDefaultTags();
PHP:
$this->addTag('plain', [
'replace' => ['', ''],
]);
PHP:
$this->addTag('plain', [
'replace' => ['<span class="bbPlain">', '</span>'],
]);
Then the paste javascript handler can convert
span.bbPlain into a [plain][/plain] tag wrappers, and XF\Html\Renderer\BbCode can do something similar.
Last edited: