I'm writing some xml feeds and i have to change or delete special characters like & and > and all html. I am using specialhtmlchars() and preg_replace and strip_tags. Now the weird thing is they work for days, but if i have to edit the file elsewhere, one or all stop working for reasons I cannot fathom.
Am I insane? Does anyone else have this problem? Am I being careless about something? If i'm insane go ahead and tell me. I can take it :)
PS, this isn't only these functions, it is a long standing problem in general.