S
S
Sergey Zelensky2015-12-21 16:39:06
Laravel
Sergey Zelensky, 2015-12-21 16:39:06

How to store html markup in laravel5 database?

Hello, the question is noob, laravel is still a noob, I
save the news in the database
there is a content field, in it I save the content of the news, oddly enough,
like this:

<h1>ЗАголовок новости</h1>
<p> тестовая новость</p>
<p>12.12.2012</p>

when displayed on the page, it gives out the text in exactly the same form (i.e. without converting to HTML entities)
digging in Google, did not give anything
, please tell me how to solve the problem, htmlspecialchars, htmlentites did not help , I
use blade as a template engine.
thanks in advance for the replies!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-12-21
@SergeyZelensky-Rostov

Your question, it turns out, is not how to store, but how to display?
laravel.com/docs/5.1/blade#displaying-data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question