Lines Matching defs:tag
387 foreach ($this->strip_htmltags as $tag) {
388 $this->strip_tag($tag, $document, $xpath, $type);
405 foreach ($this->add_attributes as $tag => $valuePairs) {
406 $this->add_attr($tag, $valuePairs, $document);
497 public function replace_urls($document, $tag, $attributes)
503 if (!is_array($this->strip_htmltags) || !in_array($tag, $this->strip_htmltags)) {
504 $elements = $document->getElementsByTagName($tag);
536 protected function strip_tag($tag, $document, $xpath, $type)
538 $elements = $xpath->query('body//' . $tag);
543 // For elements which aren't script or style, include the tag itself
544 if (!in_array($tag, ['script', 'style'])) {
545 $text = '<' . $tag;
576 if (!in_array($tag, ['script', 'style'])) {
577 $fragment->appendChild(new \DOMText('</' . $tag . '>'));
584 } elseif (in_array($tag, ['script', 'style'])) {
623 protected function add_attr($tag, $valuePairs, $document)
625 $elements = $document->getElementsByTagName($tag);