Lua nginx 中的特殊字符处理

我想输出 ab"c,但是这会引起问题。我对其进行了解析,但仍然存在问题。

位置 /test {
content_by_lua '
       local str = "ab\"c"
ngx.print(str)
';
}
点赞