diff --git a/lib/blocks.js b/lib/blocks.js index 0d2a8ec1..4c948d08 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -23,7 +23,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|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i, new RegExp('^(?:' + OPENTAG + '|' + CLOSETAG + ')\\s*$', 'i') ];