*/
protected $htmlInputNodeProcessor;
+ /**
+ * skip the HTML filter during message reprocessing
+ * @var boolean
+ */
+ protected $skipFilter = false;
+
/**
* Processes the input html string.
*
$html = HtmlBBCodeParser::getInstance()->parse($html);
// filter HTML
- $html = $this->getHtmlInputFilter()->apply($html);
+ if (!$this->skipFilter) {
+ $html = $this->getHtmlInputFilter()->apply($html);
+ }
// pre-parse HTML
$this->getHtmlInputNodeProcessor()->load($this, $html);
DOMUtil::removeNode($metacode, true);
}
- $this->process($this->getHtml(), $objectType, $objectID, false);
+ try {
+ $this->skipFilter = true;
+ $this->process($this->getHtml(), $objectType, $objectID, false);
+ }
+ finally {
+ $this->skipFilter = false;
+ }
}
/**