Script.php
public static function encode(String $str) : String
    {
        return preg_replace
        (
            array_keys(self::$scriptTagChars), 
            array_values(self::$scriptTagChars), 
            $str
        );
    }
public static function encode(String $str) : String
    {
        return preg_replace
        (
            array_keys(self::$scriptTagChars), 
            array_values(self::$scriptTagChars), 
            $str
        );
    }
public static function encode ( String $ str ) : String { return preg_replace ( array_keys ( self :: $ scriptTagChars ) , array_values ( self :: $ scriptTagChars ) , $ str ) ; }
Encode Script Tags

@param string $str

@return string
Encode Script Tags