diff options
author | xue <> | 2006-02-18 07:24:51 +0000 |
---|---|---|
committer | xue <> | 2006-02-18 07:24:51 +0000 |
commit | 145c4aef09e278d29bfd8e9858e114ca097e5901 (patch) | |
tree | f125683e12badb170f9b5c435a811fd4f8eb3942 /framework/Web/THttpUtility.php | |
parent | 64a5d4b6d3adaeab325d0e72d6c6c7624d861807 (diff) |
client script reorganization.
Diffstat (limited to 'framework/Web/THttpUtility.php')
-rw-r--r-- | framework/Web/THttpUtility.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/framework/Web/THttpUtility.php b/framework/Web/THttpUtility.php index 6aadb65d..34f1a8a4 100644 --- a/framework/Web/THttpUtility.php +++ b/framework/Web/THttpUtility.php @@ -38,26 +38,6 @@ class THttpUtility {
self::$_entityTable=array_flip(get_html_translation_table(HTML_ENTITIES,ENT_QUOTES));
}
-
- public static function quoteJavaScriptString($js,$forUrl=false)
- {
- if($forUrl)
- return strtr($js,array('%'=>'%25',"\t"=>'\t',"\n"=>'\n',"\r"=>'\r','"'=>'\"','\''=>'\\\'','\\'=>'\\\\'));
- else
- return strtr($js,array("\t"=>'\t',"\n"=>'\n',"\r"=>'\r','"'=>'\"','\''=>'\\\'','\\'=>'\\\\'));
- }
-
- public static function trimJavaScriptString($js)
- {
- if($js!=='' && $js!==null)
- {
- $js=trim($js);
- if(($pos=strpos($js,'javascript:'))===0)
- $js=substr($js,11);
- $js=rtrim($js,';').';';
- }
- return $js;
- }
}
?>
\ No newline at end of file |