New topic Closed topic
avatar image
1
How to remove html style tags in a text (multi line) variable in the back end
By Created , last editted

Hi,

I've got an property which stores the html code from an email, but I want to delete all <style> tags in this mail. A lot of mails start with many lines of css, all wrapped up in a style tag.

I have no interest in these style-tags and want to remove this for readability purposes, even though that messes with the styling of the email.

How can I find style tags and remove em in a Betty Blocks expression?


Hi,

I've got an property which stores the html code from an email, but I want to delete all <style> tags in this mail. A lot of mails start with many lines of css, all wrapped up in a style tag.

I have no interest in these style-tags and want to remove this for readability purposes, even though that messes with the styling of the email.

How can I find style tags and remove em in a Betty Blocks expression?

  • Avatar image
    Do you want to remove just the style tags or also their content?
    By
  • Avatar image
    Their content also, sorry if that wasn't clear.
    By
  • Login to reply
Answers
Sort by:

This topic is closed.