Escaping internal JavaScript
This commit is contained in:
parent
13de845e95
commit
470b34ea47
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user