]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moving & replacing to the end of html and source data
authorSarven Capadisli <csarven@status.net>
Mon, 21 Dec 2009 23:19:34 +0000 (23:19 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 21 Dec 2009 23:19:34 +0000 (23:19 +0000)
plugins/Realtime/realtimeupdate.js

index 281d3d82de5175aee43369c70b64eb6c1076b239..52151f9de8dad1dd42df0e95034b020ff98e9e32 100644 (file)
@@ -130,8 +130,8 @@ RealtimeUpdate = {
           }
 
           user = data['user'];
-          html = data['html'].replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&quot;/g,'"');
-          source = data['source'].replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&quot;/g,'"');
+          html = data['html'].replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&quot;/g,'"').replace(/&amp;/g,'&');
+          source = data['source'].replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&quot;/g,'"').replace(/&amp;/g,'&');
 
           ni = "<li class=\"hentry notice\" id=\"notice-"+unique+"\">"+
                "<div class=\"entry-title\">"+