Strip ALL HTML from Snippet | Community
Skip to main content
Sean_Richards
New Participant
May 23, 2017
Solved

Strip ALL HTML from Snippet

  • May 23, 2017
  • 1 reply
  • 2163 views

Hoping a superuser can help answer this one.

I want/need to use snippets in some email templates, but I need these snippets to be completely plain text. No HTML at all.


Currently, when I edit the HTML in the snippet and strip all of the <p> tags from each sentence, the editor puts them all back in before I can save the snippet.

Is there any way to ensure the snippet is plain text ONLY?

Thanks in advance.

Sean

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dan_Stevens_

Check your EMAIL settings in Admin. Sounds like you have "root block elements" set to <p>.

1 reply

Dan_Stevens_
Dan_Stevens_Accepted solution
New Participant
May 23, 2017

Check your EMAIL settings in Admin. Sounds like you have "root block elements" set to <p>.

Sean_Richards
New Participant
May 23, 2017

That's awesome Dan. Can't believe I hadn't stumbled across those settings yet! Thank you so much for replying.

Sean Richards