Hi All,

Some html tags like iframe and style elements are being stripped while rewriting in Views Custom text. If I use the field directly in the views this issue is not there. Please look into this issue.

Comments

sumithb created an issue. See original summary.

andrew smith’s picture

This is a security measure. Views strips certain tags: style, script etc..

One used be able to insert such tags at theme layer (various renamed Views theme templates put into your theme Templates folder):

<div style="background-image: url({{ fields.imageurl.content }})">
{{ fields.nothing.content }}
</div>

...but I can't even get that to work now.

mustanggb’s picture

Project: Views (for Drupal 7) » Drupal core
Version: 8.x-3.x-dev » 8.3.x-dev
Component: Code » views.module
Category: Bug report » Support request
Priority: Critical » Normal
Status: Active » Closed (works as designed)