Escaping text for saving in Postgres

前端 未结 0 1826
隐瞒了意图╮
隐瞒了意图╮ 2020-12-24 01:00

I am trying to escape user-generated input text, so save it in Postgres. My escape function is below:

module.exports = str => {
  if (!str) return str;

           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题