render() public method

Render parsed XML.
public render ( string $xml, mixed $context = null ) : string
$xml string
$context mixed
return string
Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * Get the content rendered as HTML.
  *
  * @param string $value
  * @return string
  */
 public function getContentHtmlAttribute($value)
 {
     return static::$formatter->render($this->attributes['content'], $this);
 }