includes/functions.php
changeset 1339 03c5b9e8e02a
parent 1328 2a5845ef8c1d
child 1341 90e2064c8ea2
equal deleted inserted replaced
1338:4147bda0e93f 1339:03c5b9e8e02a
  3371 	$reserved_words = '(' . implode('|', $reserved_words) . ')';
  3371 	$reserved_words = '(' . implode('|', $reserved_words) . ')';
  3372 	
  3372 	
  3373 	for ( $i = 0; $i < count($jscript[0]); $i++ )
  3373 	for ( $i = 0; $i < count($jscript[0]); $i++ )
  3374 	{
  3374 	{
  3375 		$js =& $jscript[2][$i];
  3375 		$js =& $jscript[2][$i];
  3376 		if ( empty($js) )
  3376 		if ( trim($js) == '' )
  3377 			continue;
  3377 			continue;
  3378 		
  3378 		
  3379 		$js = $jsc->getClean($js);
  3379 		$js = $jsc->getClean($js);
  3380 		
  3380 		
  3381 		$replacement = "<script{$jscript[1][$i]}>/* <![CDATA[ */ $js /* ]]> */</script>";
  3381 		$replacement = "<script{$jscript[1][$i]}>/* <![CDATA[ */ $js /* ]]> */</script>";