src/Zicht/Bundle/FrameworkExtraBundle/Twig/Extension.php
public function truncateHtml($html, $length, $ellipsis = '...')
    {
        return $this->truncate(html_entity_decode(strip_tags($html), null, 'UTF-8'), $length, $ellipsis);
    }
public function truncateHtml($html, $length, $ellipsis = '...')
    {
        return $this->truncate(html_entity_decode(strip_tags($html), null, 'UTF-8'), $length, $ellipsis);
    }
public function truncateHtml ( $ html , $ length , $ ellipsis = '...' ) { return $ this -> truncate ( html_entity_decode ( strip_tags ( $ html ) , null , 'UTF-8' ) , $ length , $ ellipsis ) ; }
Truncates html as text

@param string $html
@param int $length
@param string $ellipsis
@return string
Truncates html as text