Ajax/Jquery.php 1 location
|
@@ 71-77 (lines=7) @@
|
68 |
|
* @param boolean $cdata a CDATA section should be added |
69 |
|
* @return string |
70 |
|
*/ |
71 |
|
public function inline($script, $cdata=TRUE) { |
72 |
|
$str=$this->_open_script(); |
73 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
74 |
|
$str.=$this->_close_script(); |
75 |
|
|
76 |
|
return $str; |
77 |
|
} |
78 |
|
|
79 |
|
// -------------------------------------------------------------------- |
80 |
|
|
Ajax/JsUtils.php 1 location
|
@@ 669-674 (lines=6) @@
|
666 |
|
* @param boolean $cdata If a CDATA section should be added |
667 |
|
* @return string |
668 |
|
*/ |
669 |
|
public function inline($script, $cdata=TRUE) { |
670 |
|
$str=$this->_open_script(); |
671 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
672 |
|
$str.=$this->_close_script(); |
673 |
|
return $str; |
674 |
|
} |
675 |
|
// -------------------------------------------------------------------- |
676 |
|
/** |
677 |
|
* Outputs an opening <script> |