]> _ Git - cubist_util.git/commitdiff
#7894 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jan 2026 15:26:03 +0000 (16:26 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jan 2026 15:26:03 +0000 (16:26 +0100)
src/Text.php

index b5a5cb02512abbce32c8f978fdda58e5c278b3c5..62dab5a1341c7cb0997617ebf257f5135544fb79 100644 (file)
@@ -248,10 +248,10 @@ class Text
         $tags = implode('|', $allowed_tags);
 
         if (empty($tags)) {
-            $tags = '[a-z]+';
+            $tags = '[a-z0-9]+';
         }
 
-        preg_match_all('@</?\s*(' . $tags . ')(\s+[a-z_]+=(\'[^\']+\'|"[^"]+"))*\s*/?>@i', $str, $matches);
+        preg_match_all('@</?\s*(' . $tags . ')(\s+[a-z]+=(\'[^\']+\'|"[^"]+"))*\s*/?>@i', $str, $matches);
 
         $full_tags = $matches[0];
         $tag_names = $matches[1];