Index: _source/plugins/htmlwriter/plugin.js
===================================================================
--- _source/plugins/htmlwriter/plugin.js (revision 4858)
+++ _source/plugins/htmlwriter/plugin.js Mon Jan 25 20:20:56 CST 2010
@@ -174,6 +174,9 @@
if ( this.forceSimpleAmpersand )
attValue = attValue.replace( /&/, '&' );
+ // Browsers don't always escape quote in attribute values. (#4683)
+ attValue = attValue.replace( /"/g, '"' )
+
this._.output.push( ' ', attName, '="', attValue, '"' );
},
Index: _source/core/htmlparser/basicwriter.js
===================================================================
--- _source/core/htmlparser/basicwriter.js (revision 4858)
+++ _source/core/htmlparser/basicwriter.js Mon Jan 25 20:21:53 CST 2010
@@ -60,6 +60,9 @@
*/
attribute : function( attName, attValue )
{
+ // Browsers don't always escape quote in attribute values. (#4683)
+ attValue = attValue.replace( /"/g, '"' )
+
this._.output.push( ' ', attName, '="', attValue, '"' );
},