Answer: Escaping RTFs

michaelsanford

Translator, Web Developer
I don't remember who asked this, and I can't find the original thread, but here's the answer:

You can try this
Code:
$name = "Timmy O'Toole";
$escaped = addslashes($name);
print $escaped . " fell down a well";

I don't know if this will escape everything you need to for an RTF, but you can give it a shot anyway...

Let me know if it works.
 
Back
Top