extends HTML::Element::as_text() to render text properly