2
I’m using TWIG in a project of mine but I’m not able to display a string that has Bold or Italic, it simply ignores. Other HTML commands are normally displayed.
Example:
{{ 'Ao <strong><em><u>contrário do que se acredita</u></em></strong>,<span style="color:#FF0000"> Lorem Ipsum não é simplesmente um texto randômico</span>. ' }}
Return: Leaves the whole text with underline and font in red color but Bold and Italic anything.
I’ve tried that too and nothing:
{% autoescape false %}{{ 'Ao <strong><em><u>contrário do que se acredita</u></em></strong>,<span style="color:#FF0000"> Lorem Ipsum não é simplesmente um texto randômico</span>. ' }}{% endautoescape %}
How is your CSS?
– bfavaretto
It was empty. Now that you spoke I created the tags and all right. Thank you
– Joao Nivaldo
@Joaonivaldo You can answer your own question to help others with the same question in the future.
– André Ribeiro