Skip to content

Commit

Permalink
Merge branch 't/9205'
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Mar 13, 2014
2 parents 4d9b6bb + 10a3f1b commit 5aba2ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Expand Up @@ -10,6 +10,8 @@ Fixed Issues:
* [#8663](http://dev.ckeditor.com/ticket/8663): Fixed [`element.renameNode()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-renameNode) not clearing [`element.getName()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-getName) cache.
* [#11574](http://dev.ckeditor.com/ticket/11574): Fixed *Backspace* destroying DOM structure if inline editable is placed in list item.
* [#11603](http://dev.ckeditor.com/ticket/11603): Fixed: [Tableresize](http://ckeditor.com/addon/tableresize) attaches to tables outside of editable.
* [#9205](http://dev.ckeditor.com/ticket/9205), [#7805](http://dev.ckeditor.com/ticket/7805), [#8216](http://dev.ckeditor.com/ticket/8216): Fixed: `{cke_protected_1}` appearing in data in various cases where HTML comments are placed next to `"` or `'`.


## CKEditor 4.3.3

Expand Down
5 changes: 3 additions & 2 deletions core/htmldataprocessor.js
Expand Up @@ -883,8 +883,9 @@

// Different protection pattern is used for those that
// live in attributes to avoid from being HTML encoded.
return data.replace( /(['"]).*?\1/g, function( match ) {
return match.replace( /<!--\{cke_protected\}([\s\S]+?)-->/g, function( match, data ) {
// Why so serious? See #9205, #8216, #7805.
return data.replace( /<\w([^'">]+|'[^']*'|"[^"]*")+>/g, function( match ) {
return match.replace( /<!--\{cke_protected\}([^>]*)-->/g, function( match, data ) {
store[ store.id ] = decodeURIComponent( data );
return '{cke_protected_' + ( store.id++ ) + '}';
} );
Expand Down

0 comments on commit 5aba2ea

Please sign in to comment.