function unhtml($content){
$content=htmlspecialchars ($content);
$content=str_replace(chr(13),"
",$content);
$content=str_replace(chr(32),"
",$content) ;
$content=str_replace("[_[","$content=str_relace(")_)",">",$content);
$content =str_replace("|_|","",$content);
rerurn trim($content);
}
PHP str_replace() function Definition and usage
The str_replace() function uses a string to replace other characters in a string.
Syntax
str_replace(find,replace,string,count)
Parameters |
Description |
find |
Required. Specifies the value to look for. |
replace |
Required. Specifies the value that replaces the value in find. |
string |
Required. Specifies the string to be searched for. |
count |
Optional. A variable counting the number of substitutions. |