V
V
Victor Nasonov2018-08-12 14:47:42
Laravel
Victor Nasonov, 2018-08-12 14:47:42

How to disable html escaping in laravel 5.6?

return from controller

{"count":1,"code":"<div class=\"vertical menu scrolling likers\"><h2>\u041b\u0430\u0439\u043a\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438<\/h2><a class=\"item\" href=\"\/user\/2\"><img class=\"ui small image\" src=\"\/storage\/avatars\/cat.jpg\">\u041a\u043e\u0442 \u0412\u0430\u0441\u0438\u043b\u0438\u0439<\/a><\/div>","word":"1 \u043b\u0430\u0439\u043a"}

Accordingly, when I take data.code from ajax and insert it into the page, the code does not work, it counts as a line.
how to disable escaping?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question