Check for backslash before the other escape chars so they're not doubled up
Add test for sanitizeTag