Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by Jimetsu ( 17 years ago )
public function htmlescape($string) {
   for($i=0; $i<strlen($string); $i++)
    $ret .= '&#x'.dechex(ord($string[$i])).';';
   return $ret;
  }

 

Revise this Paste

Your Name: Code Language: