GedzyukAnatolyu / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

phpQuery::trim() #119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
With special chars (" ").

Original issue reported on code.google.com by tobiasz....@gmail.com on 3 Apr 2009 at 10:26

GoogleCodeExporter commented 8 years ago
no point in calling phpQuery::trim() if you can just call trim().
As it turns out, however, trim() doesn't take out   (even trim($str," ") )

So this function could be improved by something like the following:
$nbsp = "\xc2\xa0";
return trim($str, array($nbsp,"","\t","\n","\r","\0","\x0B"));

Original comment by tylerren...@gmail.com on 12 May 2010 at 10:02