3 use RemexHtml\Tokenizer\Attributes
;
4 use RemexHtml\Tokenizer\TokenHandler
;
5 use RemexHtml\Tokenizer\Tokenizer
;
10 class RemexStripTagHandler
implements TokenHandler
{
12 public function getResult() {
16 function startDocument( Tokenizer
$t, $fns, $fn ) {
19 function endDocument( $pos ) {
22 function error( $text, $pos ) {
25 function characters( $text, $start, $length, $sourceStart, $sourceLength ) {
26 $this->text
.= substr( $text, $start, $length );
28 function startTag( $name, Attributes
$attrs, $selfClose, $sourceStart, $sourceLength ) {
31 function endTag( $name, $sourceStart, $sourceLength ) {
34 function doctype( $name, $public, $system, $quirks, $sourceStart, $sourceLength ) {
37 function comment( $text, $sourceStart, $sourceLength ) {