Added CDATA to Javascript
This commit is contained in:
@@ -129,7 +129,7 @@ class block_admin_tree extends block_base {
|
||||
|
||||
$this->content = new stdClass;
|
||||
$this->content->text = '<script type="text/javascript">'."\n";
|
||||
$this->content->text .= '<!--' . "\n";
|
||||
$this->content->text .= '//<![CDATA[' . "\n";
|
||||
$this->content->text .= 'var vh_numspans = ' . ($this->spancounter - 1) . ';' . "\n";
|
||||
$this->content->text .= 'var vh_content = new Array();' . "\n";
|
||||
$this->content->text .= 'function getspan(spanid) {' . "\n";
|
||||
@@ -177,7 +177,7 @@ class block_admin_tree extends block_base {
|
||||
$this->content->text .= ' }' . "\n";
|
||||
$this->content->text .= '}' . "\n";
|
||||
|
||||
$this->content->text .= '-->' . "\n";
|
||||
$this->content->text .= '//]]>' . "\n";
|
||||
$this->content->text .= '</script>' . "\n";
|
||||
$this->content->text .= '<div align="left">' . "\n";
|
||||
|
||||
@@ -185,11 +185,11 @@ class block_admin_tree extends block_base {
|
||||
|
||||
$this->content->text .= '</div>' . "\n";
|
||||
$this->content->text .= '<script type="text/javascript">' . "\n";
|
||||
$this->content->text .= '<!--' . "\n";
|
||||
$this->content->text .= '//<![CDATA[' . "\n";
|
||||
$this->content->text .= 'collapseall();' . "\n";
|
||||
$this->content->text .= $this->expandjavascript;
|
||||
|
||||
$this->content->text .= '-->' . "\n";
|
||||
$this->content->text .= '//]]>' . "\n";
|
||||
$this->content->text .= '</script>' . "\n";
|
||||
|
||||
$searchcontent = isset($CFG->adminsearchquery) ? $CFG->adminsearchquery : '';
|
||||
|
||||
Reference in New Issue
Block a user