Ajax/Jquery.php 1 location
|
@@ 81-87 (lines=7) @@
|
78 |
|
* @param boolean $cdata a CDATA section should be added |
79 |
|
* @return string |
80 |
|
*/ |
81 |
|
public function inline($script, $cdata=TRUE) { |
82 |
|
$str=$this->_open_script(); |
83 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
84 |
|
$str.=$this->_close_script(); |
85 |
|
|
86 |
|
return $str; |
87 |
|
} |
88 |
|
|
89 |
|
// -------------------------------------------------------------------- |
90 |
|
|
Ajax/JsUtils.php 1 location
|
@@ 238-243 (lines=6) @@
|
235 |
|
* @param boolean $cdata If a CDATA section should be added |
236 |
|
* @return string |
237 |
|
*/ |
238 |
|
public function inline($script, $cdata=TRUE) { |
239 |
|
$str=$this->_open_script(); |
240 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
241 |
|
$str.=$this->_close_script(); |
242 |
|
return $str; |
243 |
|
} |
244 |
|
// -------------------------------------------------------------------- |
245 |
|
/** |
246 |
|
* Outputs an opening <script> |