In python I can construct a HTML string without worrying about escaping special characters like < or \" by simply enclosing the string in triple quotes like:
No, but some tools escape it for you when you paste it, like eclipse.