Lines Matching defs:match
519 public function do_strip_htmltags($match)
522 if (isset($match[4]) && !in_array(strtolower($match[1]), ['script', 'style'])) {
523 $match[1] = htmlspecialchars($match[1], ENT_COMPAT, 'UTF-8');
524 $match[2] = htmlspecialchars($match[2], ENT_COMPAT, 'UTF-8');
525 return "<$match[1]$match[2]>$match[3]</$match[1]>";
527 return htmlspecialchars($match[0], ENT_COMPAT, 'UTF-8');
529 } elseif (isset($match[4]) && !in_array(strtolower($match[1]), ['script', 'style'])) {
530 return $match[4];