Commit 470b34ea authored by Sarven Capadisli's avatar Sarven Capadisli

Escaping internal JavaScript

parent 13de845e
......@@ -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('
<!--
$(document).ready(function() {
' . $this->_updateInitialize($timeline, $user_id) . '
});
-->
');
$action->elementEnd('script');
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment