Ticket #4614: 4614.patch
File 4614.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
199 199 }; 200 200 } 201 201 202 var protectAttributeRegex = /<(?:a|area|img|input) .*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi;202 var protectAttributeRegex = /<(?:a|area|img|input)[\s\S]*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi; 203 203 204 204 function protectAttributes( html ) 205 205 { … … 208 208 209 209 var protectStyleTagsRegex = /<(style)(?=[ >])[^>]*>[^<]*<\/\1>/gi; 210 210 var encodedTagsRegex = /<cke:encoded>([^<]*)<\/cke:encoded>/gi; 211 var protectElementNamesRegex = /(<\/?)((?:object|embed|param) .*?>)/gi;212 var protectSelfClosingRegex = /<cke:param( .*?)\/>/gi;211 var protectElementNamesRegex = /(<\/?)((?:object|embed|param)[\s\S]*?>)/gi; 212 var protectSelfClosingRegex = /<cke:param([\s\S]*?)\/>/gi; 213 213 214 214 function protectStyleTagsMatch( match ) 215 215 {