X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fhtmldataprocessor%2Fplugin.js;h=01be3582ab96f229c1c50b9c6ae87474fe07de2e;hp=3ec5db36f54f54dd845b18104cc04735018555c9;hb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d diff --git a/_source/plugins/htmldataprocessor/plugin.js b/_source/plugins/htmldataprocessor/plugin.js index 3ec5db3..01be358 100644 --- a/_source/plugins/htmldataprocessor/plugin.js +++ b/_source/plugins/htmldataprocessor/plugin.js @@ -199,7 +199,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license }; } - var protectAttributeRegex = /<(?:a|area|img|input).*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi; + var protectAttributeRegex = /<(?:a|area|img|input)[\s\S]*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi; function protectAttributes( html ) { @@ -208,8 +208,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var protectStyleTagsRegex = /<(style)(?=[ >])[^>]*>[^<]*<\/\1>/gi; var encodedTagsRegex = /([^<]*)<\/cke:encoded>/gi; - var protectElementNamesRegex = /(<\/?)((?:object|embed|param).*?>)/gi; - var protectSelfClosingRegex = //gi; + var protectElementNamesRegex = /(<\/?)((?:object|embed|param)[\s\S]*?>)/gi; + var protectSelfClosingRegex = //gi; function protectStyleTagsMatch( match ) { @@ -226,7 +226,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } function protectSelfClosingElements( html ) { - return html.replace( protectSelfClosingRegex, '' ); + return html.replace( protectSelfClosingRegex, '' ); } function unprotectEncodedTagsMatch( match, encoded )