Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.2.1
[ckeditor.git]
/
_source
/
plugins
/
htmlwriter
/
plugin.js
diff --git
a/_source/plugins/htmlwriter/plugin.js
b/_source/plugins/htmlwriter/plugin.js
index
4408402
..
46fadde
100644
(file)
--- a/
_source/plugins/htmlwriter/plugin.js
+++ b/
_source/plugins/htmlwriter/plugin.js
@@
-175,8
+175,8
@@
CKEDITOR.htmlWriter = CKEDITOR.tools.createClass(
if ( typeof attValue == 'string' )
\r
{
\r
this.forceSimpleAmpersand && ( attValue = attValue.replace( /&/g, '&' ) );
\r
if ( typeof attValue == 'string' )
\r
{
\r
this.forceSimpleAmpersand && ( attValue = attValue.replace( /&/g, '&' ) );
\r
- // Browsers don't always escape quote in attribute values. (#4683)
\r
- attValue = attValue.replace( /"/g, '"' );
\r
+ // Browsers don't always escape special character in attribute values. (#4683, #4719).
\r
+ attValue = CKEDITOR.tools.htmlEncodeAttr( attValue );
\r
}
\r
\r
this._.output.push( ' ', attName, '="', attValue, '"' );
\r
}
\r
\r
this._.output.push( ' ', attName, '="', attValue, '"' );
\r