From: Sarven Capadisli Date: Mon, 21 Sep 2009 18:30:22 +0000 (+0000) Subject: Escaping internal JavaScript X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=470b34ea47ff97bbcbffb49c8a456da358b29578;p=quix0rs-gnu-social.git Escaping internal JavaScript --- diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 1703ef0995..7a612a4064 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -98,9 +98,13 @@ class RealtimePlugin extends Plugin } $action->elementStart('script', array('type' => 'text/javascript')); - $action->raw("$(document).ready(function() { "); - $action->raw($this->_updateInitialize($timeline, $user_id)); - $action->raw(" });"); + $action->raw(' + + '); $action->elementEnd('script'); return true;