Reduce code dupes for ScriptDataDoubleEscapeStart and ScriptDataDoubleEscapeEnd