It\'s easy to declare a raw string
var tempString = r\'\\(x = {-b \\pm \\sqrt{b^2-4ac} \\over 2a}\\)\';