Open GoogleCodeExporter opened 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
Original issue reported on code.google.com by
tobiasz....@gmail.com
on 3 Apr 2009 at 10:26