コード例 #1
0
ファイル: javascript_helper.php プロジェクト: joeymetal/v1
 /**
 * Returns a JavaScript tag with the +content+ inside. Example:
 *   javascript_tag("alert('All is good')") => <script type="text/javascript">alert('All is good')</script>
 */
 function javascript_tag($content)
 {
     return TagHelper::content_tag("script", JavascriptHelper::javascript_cdata_section($content), array('type' => 'text/javascript'));
 }