Using php’s DOMDocument->LoadHTMLFile(‘test.html’); keeps on returning an error to me, reporting for an error in the content at line 36. Deleting character after character, it turns out it’s an apparently empty space that was the culprit.
Copying/pasting that sentence in another editor (Editra), showed a strange RS character.
What is it, and more importantly, how can i avoid it from happening again ?
It’s a Record separator
What you can do is use
strtr()to strip away non visible characters. An example by Joel Degan on PHP.net should get you on your way.