Interesting!
Found this:
http://www.voormedia.com/en/tools/html-obfuscate-scrambler.php
//But it probably would be tricky to use for the whole page output...
^ Thanks for that. Another thought, is there a way to get MODx to strip new lines from its output? It might then be possiblle to provide a level of comfort to the client, whilst retaining a simpler approach, thereby reducing compatibility issues.
Thoughts?
Regards
It’s pretty easy to build a plugin the removes all newlines from the output (or scramble it any other way you like). I’d be careful though as anything beyond basic stuff will most likely destroy any search engines ability to index your site not to mention compatibility with different web browsers or mobile devices.
Remove first (<?php ) and last (?>) line from Etals example code. Then it should work.
^ Thanks. Excising the php tags removed the error. However, the pages still render normally in view page source.
Regards
I believe \r\n will do the trick.