Twig_Markup

Marks a content as safe.

Defined (1)

The class is defined in the following location(s).

/vendor/twig/twig/lib/Twig/Markup.php  
  1. class Twig_Markup implements Countable 
  2. protected $content; 
  3. protected $charset; 
  4.  
  5. public function __construct($content, $charset) 
  6. $this->content = (string) $content; 
  7. $this->charset = $charset; 
  8.  
  9. public function __toString() 
  10. return $this->content; 
  11.  
  12. public function count() 
  13. return function_exists('mb_get_info') ? mb_strlen($this->content, $this->charset) : strlen($this->content);