Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
removed $ object.
Browse files Browse the repository at this point in the history
  • Loading branch information
swdyh committed May 14, 2012
1 parent 87ca503 commit e05142e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions twitter-text.js
Expand Up @@ -497,9 +497,9 @@ if (typeof twttr === "undefined" || twttr === null) {
precedingEllipsis: displayUrl.match(/^…/) ? "…" : "",
followingEllipsis: displayUrl.match(/…$/) ? "…" : ""
};
$.each(v, function(index, value) {
v[index] = twttr.txt.htmlEscape(value);
});
for (var k in v) {
v[k] = twttr.txt.htmlEscape(v[k]);
}
// As an example: The user tweets "hi http://longdomainname.com/foo"
// This gets shortened to "hi http://t.co/xyzabc", with display_url = "…nname.com/foo"
// This will get rendered as:
Expand Down

0 comments on commit e05142e

Please sign in to comment.