SOLVED

Strip ALL HTML from Snippet

Go to solution
Highlighted

Strip ALL HTML from Snippet

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 10 - Champion Alumni

Re: Strip ALL HTML from Snippet

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

pastedImage_0.png

View solution in original post

2 REPLIES 2
Highlighted
Level 10 - Champion Alumni

Re: Strip ALL HTML from Snippet

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

pastedImage_0.png

View solution in original post

Highlighted

Re: Strip ALL HTML from Snippet

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