Location: PHPKode > projects > Open Rent Stock > rentstock/ext/smarty/smarty_extensions/modifier.script.php
<?php

/**
 * Smarty plugin
 *
 * Type:     modifier<br>
 * Example:  {$text|script}

 * @param string
 * @return string
 */
function smarty_modifier_script($string)
{
	global $char_set;
	$string = str_replace("\n","",$string);
	$string = htmlentities($string, ENT_QUOTES, $char_set);
	$string = str_replace(array("\n","\r","\0","\b","\Z"), "", $string);
	/*
	$string = str_replace("\r","",$string);
	$string = str_replace("\0","",$string);
	$string = str_replace("\b","",$string);
	$string = str_replace("\Z","",$string);
	*/
	$string = strtr($string, array("'"=>'"', "&#039;"=>"&quot;"));
	return trim($string);
}

?>
Return current item: Open Rent Stock