Why does Rails 2.3.16 escape quote chars in form fields?

前端 未结 1 1210
走了就别回头了
走了就别回头了 2020-12-22 01:16

Consider a simple object Shop which has a string attribute \'name\'.

Our example shop has the name:

Sam\'s Diner & Cafe - \"deelicious\"
<         


        
1条回答
  •  一向
    一向 (楼主)
    2020-12-22 02:13

    This appears to have been something broken in 2.3.16. See https://github.com/rails/rails/issues/9108 for a fix that worked for me at least.

    0 讨论(0)
提交回复
热议问题