twig striptags and html special chars
问题 I am using twig to render a view and I am using the striptags filter to remove html tags. However, html special chars are now rendered as text as the whole element is surrounded by "". How can I either strip special chars or render them, while still using the striptags function ? Example : {{ organization.content|striptags(" >")|truncate(200, '...') }} or {{ organization.content|striptags|truncate(200, '...') }} Output: "QUI SOMMES NOUS ? > NOS LOCAUXNOS LOCAUXDepuis 1995, Ce lieu chargé d