Escaping internal JavaScript

This commit is contained in:
Sarven Capadisli 2009-09-21 18:30:22 +00:00
parent 13de845e95
commit 470b34ea47

View File

@ -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;