diff --git a/lib/blocks.js b/lib/blocks.js index 0f0f844c..aba1eacf 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -20,7 +20,7 @@ var reHtmlBlockOpen = [ /^<[?]/, /^]|$)/i, + /^<[/]?(?: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|search|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i, new RegExp("^(?:" + OPENTAG + "|" + CLOSETAG + ")\\s*$", "i") ];