Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have some ads that use <script></script> that i get from a view and need to insert into a page. I made a view JSON export and tried to import them in the template with javascript, but looks like that is too late in the process. So, I instead added a views block that I imported in a custom twig template. The problem is that views surrounds the <script></script> in quoutes, so intstead of processing the script it just show the full script. I have tried to use | render | trim in twig to remove the outer quotes, but no success and I feel this is not the right solu