File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -762,8 +762,6 @@ var parseDocType = function(doc, html) {
762
762
dom . Element . prototype . __defineGetter__ ( 'textContent' , function ( ) {
763
763
var stripHTML = / < \S [ ^ > < ] * > / g;
764
764
var out = this . innerHTML ;
765
- //Encode all the spaces
766
- //out = out.replace(/ /g, ' ');
767
765
//Remove all the HTML
768
766
out = out . replace ( stripHTML , '' ) ;
769
767
//Now decode the encoded text content
@@ -773,8 +771,6 @@ var parseDocType = function(doc, html) {
773
771
dom . Element . prototype . __defineSetter__ ( 'textContent' , function ( txt ) {
774
772
//Un encode all the entities
775
773
txt = HTMLEncode ( txt ) ;
776
- //Now replace all the spaces with non-breaking spaces
777
- //txt = txt.replace(/ {2}/g, ' ');
778
774
//Set the content
779
775
this . innerHTML = txt ;
780
776
return txt ;
You can’t perform that action at this time.
0 commit comments