SOLVED

Re: Strip ALL HTML from Snippet

Go to solution
Sean_Richards
Level 5

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

Sean Richards
1 ACCEPTED SOLUTION

Accepted Solutions
Dan_Stevens_
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
Dan_Stevens_
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

Sean_Richards
Level 5

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.

Sean Richards