isAllowedTag() public method

Check if a tag is on the whitelist.
public isAllowedTag ( string $tag ) : boolean
$tag string Tag name
return boolean
Example #1
0
 /**
  * Parse closing tag.
  *
  * @param resource $parser XML parser
  * @param string   $tag    Tag name
  */
 public function endTag($parser, $tag)
 {
     if (!array_pop($this->empty_tags) && $this->tag->isAllowedTag($tag)) {
         $this->output .= $this->tag->closeHtmlTag($tag);
     }
 }