twig - HTML Formatting not working in symfony 2 -
i have symfony 2 form in back-end have rich text field tiny mce editor. data type of field varchar in database table.
when prints content on front side formatting not work. shows plain text rather html formatted content.
how prints:
< p >< strong >hello< /strong >< /p >
how should print:
hello
any solution?
to print variable contains html characters, code string use escape
(which default in symfony)
{{ content|escape }}
to print variable contains html characters, none code string use raw
{{ content|raw }}
Comments
Post a Comment