0

I have a view that includes HTML from a rich text field. Im trying to render the HTML in a twig template but it does not work. Tried {{ output | raw }} also autoescape.

Here's how it looks in the Inspector

View from the Inspector

Any ideas how I can render this?

3
  • I'm not aware of issues with rendering rich text fields in Views. Can you add more details?
    – 4uk4
    Commented Apr 18 at 8:30
  • First, you need to remove the <p> tag that is coming from the Drupal view. Then, you can apply your HTML code in this view. Commented Apr 20 at 8:29
  • @VishalKumarYadav thanks - but that's the issue. That black <p> tag is the item that should be rendered. Commented Apr 22 at 9:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.