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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -