Skip to content
Browse files

Swapped the arguments of the replace call to allow angle brackets to …

…display properly (for things like ascii hearts: <3 )
  • Loading branch information...
1 parent 4c252cf commit d4d27d4c21fa76bb6c70914651159e744c5219af @nloadholtes committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tweet_transforms.js
View
2 lib/tweet_transforms.js
@@ -2,7 +2,7 @@ var Transforms = {
transformingSpan: document.createElement("span"),
transformEntities: function(text) {
- Transforms.transformingSpan.innerHTML = text.replace(/</g, '&lt;').replace(/>/g, '&gt;');
+ Transforms.transformingSpan.innerHTML = text.replace(/&lt;/g, "<").replace(/&gt;/g, ">");
return Transforms.transformingSpan.textContent;
},

0 comments on commit d4d27d4

Please sign in to comment.
Something went wrong with that request. Please try again.