File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ public static function getHtmlBlockOpenRegex(int $type): string
192192 case HtmlBlock::TYPE_5_CDATA :
193193 return '/^<!\[CDATA\[/i ' ;
194194 case HtmlBlock::TYPE_6_BLOCK_ELEMENT :
195- return '%^<[/]? (?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)%i ' ;
195+ return '%^</?+ (?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s++ |[/]?+ [>]|$)%i ' ;
196196 case HtmlBlock::TYPE_7_MISC_ELEMENT :
197197 return '/^(?: ' . self ::PARTIAL_OPENTAG . '| ' . self ::PARTIAL_CLOSETAG . ') \\s*$/i ' ;
198198 default :
You can’t perform that action at this time.
0 commit comments