Marcoil has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/82866


Change subject: Don't encode quotes or apostrophes.
......................................................................

Don't encode quotes or apostrophes.

Change-Id: I197ffd0168e5ffc62bc3b609359071502b1926b2
---
M js/tests/roundtrip-test.js
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/66/82866/1

diff --git a/js/tests/roundtrip-test.js b/js/tests/roundtrip-test.js
index 115b73d..9105bc7 100755
--- a/js/tests/roundtrip-test.js
+++ b/js/tests/roundtrip-test.js
@@ -60,9 +60,7 @@
 var encodeXmlEntities = function( str ) {
        return str.replace( /&/g, '&' )
                          .replace( /</g, '&lt;' )
-                         .replace( />/g, '&gt;' )
-                         .replace( /"/g, '&quot;' )
-                         .replace( /'/g, '&apos;' );
+                         .replace( />/g, '&gt;' );
 };
 
 var xmlCallback = function ( env, err, results ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/82866
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I197ffd0168e5ffc62bc3b609359071502b1926b2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Marcoil <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to