Tôi muốn quay trở lại nội dung html qua JBuilder:trở html unescaped với JBuilder
json.array!(@articles) do |article|
json.extract! article, :id, :title, :html_content
end
Nhưng nó trở lại trốn html:
{
"id": 2,
"title": "",
"html_content": "\u003cp\u003e\u003cimg alt=\"\" src=\"#\" /\u003e\u003c/p\u003e\r\n"
}
Làm thế nào nó có thể trở html unescaped?