I'm trying to output a file using pre-defined RTF formatting, and inputting the text where applicable.

The beginning of the file is this:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit;}\viewkind4\uc1\pard\f0\fs28 VAR1\par

And here's the problem:
Rather than go through that whole mess and add \ everywhere til it works, is there a way to ignore all escape characters? I read through googling that you can implement "@", but using them in place of quotes didnt help.

Any Ideas?

tl;dr: How do I ignore escape sequences in a string?