Assuming I have a sting which is "a s d d" and htmlentities turns it into
"a s d d".
How to replace (using preg_replacepreg_replace) it without encoding it to entities?
I tried preg_replace('/[\xa0]/', '', $string);, but it's not working. I'm trying toit didn't remove those specialthe characters from my string as I don't need them.
What are the possibilities beyond regexpregular expression?
Edit
String I want to parse: http://pastebin.com/raw/7eNT9sZr
with function preg_replace('/[\r\n]+/', "[##]", $text)
for later implode("</p><p>", explode("[##]", $text))
My question is not exactly "how" to do this (since I could encode entities, remove entities iI don't need and decode entities). But how to remove those with just str_replacestr_replace or preg_replacepreg_replace.