WOW what bug in my head !!!
I've already tried this, but don't work too.
Looking your code, i know because:
$tipo=html_entity_decode(strip_tags($name[0][3]));
$tipo=str_replace( " ", "", $tipo );
mysql_query("INSERT INTO table VALUES 0,'$tipo'");
I FIRST remove html_entity and next str_replace ๐
The right is
$tipo=strip_tags($name[0][3]);
$tipo=str_replace( " ", "", $tipo );
mysql_query("INSERT INTO table VALUES 0,'$tipo'");
that work fine...
thanks a lot.
P.s: but i can't know why trim() has no effect...