public function render($xml, $context = null) { $renderer = $this->getRenderer($context); $this->events->fire(new ConfigureFormatterRenderer($renderer, $context, $xml)); return $renderer->render($xml); }
/** * Get the content rendered as HTML. * * @return string */ public function getContentHtmlAttribute() { if ($this->is_html) { return nl2br($this->content); } return static::$formatter->render($this->attributes['content'], $this); }