aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--twitter.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/twitter.js b/twitter.js
index 9207604..0fbe73c 100644
--- a/twitter.js
+++ b/twitter.js
@@ -37,15 +37,14 @@
followers_status.forEach(function(stat){
stat.user.name += "\u202c";
stat.text += "\u202c";
- html += <><![CDATA[
- <img src="{stat.user.profile_image_url}"
- title="{stat.user.screen_name}"
+ html += <>
+ <img src={stat.user.profile_image_url}
+ title={stat.user.screen_name}
border="0"/>
<strong>{stat.user.name}</strong>
: {stat.text}<br/>
- ]]></>.toString()
- .replace(/(?:\r?\n|\r)\s*/g, '')
- .replace(/\{([^}]+)\}/g, function(x){return window.eval(x)})
+ </>.toString()
+ .replace(/(?:\r?\n|\r)\s*/g, '');
});
liberator.log(html);
liberator.echo(html, true);