diff --git a/src/CustomBladeCompiler.php b/src/CustomBladeCompiler.php index 6b0bdcde..e6aa6346 100644 --- a/src/CustomBladeCompiler.php +++ b/src/CustomBladeCompiler.php @@ -29,7 +29,7 @@ protected function compileComponentTags($view) */ public static function regexForTag(string $tag): string { - return '/(<\s*' . $tag . '[^>]*>)(.|\n)*?(<\/' . $tag . '>)/'; + return '/(<\s*' . $tag . '(?:"[^"]*"|\'[^\']*\'|[^\'">])*>)(.|\n)*?(<\/' . $tag . '>)/'; } /**