Hi,
It would be convenient to have an htmlentities like function in Pike (http://fr.php.net/htmlentities). Having this in Pike would benefit to more poeple than having it in webservers like Caudium or Roxen.
Maybe we can start with a simple thing like this:
string htmlentities(string content) { string res = "";
for(int i = 0; i < sizeof(content); i++) { if(content[i] > 127) res += sprintf("&#x%x;", content[i]); else res += content[i..i]; } return res; }
Any ideas ?
-- David Gourdelier