I'm working on updating several .rtf templates (a thread discussed a few days ago).
I found a major problem with editing tables was the string:
$INSTRUCTIONSSIGNATURE="\trowd \trgaph108\trleft-108\trftsWidth1\trautofit1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth505 \cellx397\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth8351 \cellx8748\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\f1\fs48 {\field{\*\fldinst SYMBOL 255 \\f \"Symbol\" \\s 24}{\fldrslt\f3\fs48}}}{\f1\fs48 \cell }{\f1 Include a sheet of your signatures. This will be used to apply to your cover letter. On a blank sheet of white paper, sign your name 10 to 12 times in black ink only, using a roller point or gel-pen, and leave plenty of white space around each signature.\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\f1 \trowd \trgaph108\trleft-108\trftsWidth1\trautofit1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth505 \cellx397\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth8351 \cellx8748\row }";
contains several \t \r \n \'s throughout. When these lines are run through the ereg_replace or join functions, you get the idea (the table becomes corrupt).
All I know of escape characters is what I've read on the PHP manual: \n \r \t \ \$ and \".
The Question: Are there any other characters I should be escaping for, or checking my string with before passing to the output?