Forum Moderators: coopster
<edit>
	 is a tab, so you may want to use -
str_replace('	', '\t', $input);
although that wont affect your display at all.
�A is a line feed you may want -
str_replace('
', '<br />\n', $input);
Or you may want to just look for all hex characters with a value of less than 20 and remove those, as they are all control characters.
preg_replace('%&#x[0-1]?[0-9a-f]%i', '', $input);
[edited by: PHP_Chimp at 5:09 pm (utc) on Jan. 21, 2008]