By Kozak on
I need to use some escaped characters like \n in my PHP code on a content page, and every time when I save the page one backslash dissappears. I must use \n characters to create the input for PHP mail function (
or something would not work).
Is there a solution to this? It seems like drupal editor will always drop one backslash when the page content is saved, so I imagine the solution would be using some sort of ASCII code equivalent for \n but without '\'.
Comments
The solution to this problem
The solution to this problem for me was to replace every "\" with chr(92). which serves the same purpose. so something like (if $n=="\n") would be (if $n==chr(92)."n") . It is still a problem nonetheless and I hope there is a way to overcome it.