(see #211). EmptyParagraph : /^<(p|div|address|h\d|center)(?=[ >])[^>]*>\s*(<\/\1>)?$/ , EmptyOutParagraph : /^<(p|div|address|h\d|center)(?=[ >])[^>]*>(?:\s*| )(<\/\1>)?$/ , TagBody : /> , GeckoEntitiesMarker : /#\?-\:/g , // We look for the "src" and href attribute with the " or ' or without one of // them. We have to do all in one, otherwise we will have problems with URLs // like "thumbnail.php?src=someimage.jpg" (SF-BUG 1554141). ProtectUrlsImg : /]+))/gi , ProtectUrlsA : /]+))/gi , ProtectUrlsArea : /]+))/gi , Html4DocType : /HTML 4\.0 Transitional/i , DocTypeTag : /]*>/i , HtmlDocType : /DTD HTML/ , // These regex are used to save the original event attributes in the HTML. TagsWithEvent : /<[^\>]+ on\w+[\s\r\n]*=[\s\r\n]*?('|")[\s\S]+?\>/g , EventAttributes : /\s(on\w+)[\s\r\n]*=[\s\r\n]*?('|")([\s\S]*?)\2/g, ProtectedEvents : /\s\w+_fckprotectedatt="([^"]+)"/g, StyleProperties : /\S+\s*:/g, // [a-zA-Z0-9:]+ seams to be more efficient than [\w:]+ InvalidSelfCloseTags : /(<(?!base|meta|link|hr|br|param|img|area|input)([a-zA-Z0-9:]+)[^>]*)\/>/gi, // All variables defined in a style attribute or style definition. The variable // name is returned with $2. StyleVariableAttName : /#\(\s*("|')(.+?)\1[^\)]*\s*\)/g, RegExp : /^\/(.*)\/([gim]*)$/, HtmlTag : /<[^\s<>](?:"[^"]*"|'[^']*'|[^<])*>/ } ;