DOMUtil::removeNode($metacode, true);
}
- $this->process($html, $objectType, $objectID, false);
+ $this->process($this->getHtml(), $objectType, $objectID, false);
}
/**
<?php
namespace wcf\system\html\input\node;
+use wcf\system\bbcode\BBCodeHandler;
use wcf\system\bbcode\HtmlBBCodeParser;
use wcf\system\event\EventHandler;
use wcf\system\html\node\AbstractHtmlNodeProcessor;
EventHandler::getInstance()->fireAction($this, 'filterGroups', $data);
foreach ($groups as $name => $pairs) {
- if (!in_array($name, $data['bbcodes'])) {
+ if (!in_array($name, $data['bbcodes']) || !BBCodeHandler::getInstance()->isAvailableBBCode($name)) {
foreach ($pairs as $pair) {
$pair['attributes'] = $htmlNodeProcessor->parseAttributes($pair['attributes']);
$this->convertToBBCode($name, $pair);