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