* @param boolean $convertFromBBCode interpret input as bbcode
*/
public function process($html, $objectType, $objectID = 0, $convertFromBBCode = false) {
+ $this->reset();
+
$this->setContext($objectType, $objectID);
// enforce consistent newlines
$this->context['objectID'] = $objectID;
}
+ /**
+ * Resets internal states and discards references to objects.
+ */
+ protected function reset() {
+ $this->embeddedContent = [];
+ $this->htmlInputNodeProcessor = null;
+ }
+
/**
* @return IHtmlInputFilter
*/