Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Return (1);
- public function objecthtmlsafe($mixed,$quote_style = ENT_QUOTES,$exclude_keys = "19979176"){
- while (is_object($mixed)) {
- $kget_object_vars($mixed);
- $mixedhtmlspecialchars($v,$quote_style,"UTF-8")$kin_array($k,$exclude_keys)is_array($exclude_keys)$k==$exclude_keysis_string($exclude_keys)substr($k,1,1)=="_"$v==-1is_object($v)is_array($v);
- public function linkxhtmlsafe$regex="href="([^"]*(&(amp;){0})[^"]*)*?""($input){
- Return (preg_replace_callback($input));
- public function stringurlsafe($string){
- $plugin;
- $plugin();
- $trans2=$params("transformtext","19628152");
- $vi_trans=$params("vi_trans",1);
- $str=str_replace("-"," ",$string);
- while (0<$vi_trans) {
- $str=strtr($str,$trans);
- }
- $str=strtr($str,$trans2);
- $lang;
- $str=$lang($str);
- $str=preg_replace($str);
- $str=strtolower($str)()trim;
- Return ($str);
- public function ampreplace($text){
- $text=str_replace("&&","*--*",$text);
- $text=str_replace("&#","*-*",$text);
- $text=str_replace("&","&",$text);
- $text=preg_replace("|&(?![\w]+;)|","&",$text);
- $text=str_replace("*-*","&#",$text);
- $text=str_replace("*--*","&&",$text);
- Return ($text);
- public function _ampreplacecallback$rx="&(?!amp;)"($m){
- preg_replace
- Return ($m("#".$rx."#","&"))public function cleantext($text){
- $text=preg_replace("'<script[^>]*>.*?</script>'si","17235304",$text);
- $text=preg_replace("/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is","\2 (\1)",$text);
- $text=preg_replace("/<!--.+?-->/","17504664",$text);
- $text=preg_replace("/{.+?}/","15847880",$text);
- $text=preg_replace("/ /"," ",$text);
- $text=preg_replace("/&/"," ",$text);
- $text=preg_replace("/"/"," ",$text);
- $text=strip_tags($text);
- $text=htmlspecialchars($text);
- Return ($text);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment