HTML <iframe> code in custom module -> widget text field -> empty output
I have a sudden problem in an existing custom module that normally worked just fine a few days ago.
So… In a custom module, I made a new field (left column -> add new field)) of type “text” with the name “video_embed_code”.
Then I output this as follows:
But when I view the block (which I included in a Landingpage) I get nothing as output , just empty space. What is going wrong here? Just a day ago this all worked fine. And now not anymore. I am not sure if it was me that changed something or Hubspot… (probably me )
EDIT: I guess I found a temporary solution: when I input escaped html for the same video everything works again…
I am very sure that it worked without escaping a couple of days ago. And now I assume Hubspot changed the validation of a text field… If so this will have consequences for all our Hubspot clients who think they can still input embed code in text fields…
HTML <iframe> code in custom module -> widget text field -> empty output
Today the problem exists only in previewing the template.
So it works again on previewing the real page based on that template. That is fine for me now.