Skip to content

Commit

Permalink
Swapped the arguments of the replace call to allow angle brackets to …
Browse files Browse the repository at this point in the history
…display properly (for things like ascii hearts: <3 )
  • Loading branch information
nloadholtes committed May 9, 2012
1 parent 4c252cf commit d4d27d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tweet_transforms.js
Expand Up @@ -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;
},

Expand Down

0 comments on commit d4d27d4

Please sign in to comment.