Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correctly escaping html entities. Fixes #360

  • Loading branch information...
commit 1f5d5b271ea860592b31554f9f35ac877620d43b 1 parent 40e8929
@cezarsa authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/tweets_assembler.js
View
3  lib/tweets_assembler.js
@@ -288,7 +288,8 @@ var Renderer = {
indices = entity.indices;
link = null;
- elements.appendChild(Renderer.makeText(text.substring(totalInc, indices[0])));
+ textContent = Transforms.transformEntities(text.substring(totalInc, indices[0]));
+ elements.appendChild(Renderer.makeText(textContent));
if (entity.type === 'mention') {
Please sign in to comment.
Something went wrong with that request. Please try again.