How to prevent the HTML editor from adding a p tag after I delete it from the code? | Community
Skip to main content
Dan_Stevens_
Level 10
June 19, 2014
Solved

How to prevent the HTML editor from adding a p tag after I delete it from the code?

  • June 19, 2014
  • 5 replies
  • 2012 views
I have a block of text that's surrounded with a <span> tag.  The HTML editor keeps adding a <p> tag before the <span> tag and it's affecting the layout of the text.  How do I remove specific tags from the HTML and not have the editor add them back in?
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 Justin_Cooperm2
I'm assuming this is an email?

Use a <div> instead, or just go to Email Actions > HTML Tools > Replace HTML but that will disconnect the email from the template.

5 replies

June 19, 2014
I have been having this issue too.
Michelle_Tizian
Level 10
June 19, 2014
Ugh yes same here. 
Justin_Cooperm2
Justin_Cooperm2Accepted solution
Level 10
June 19, 2014
I'm assuming this is an email?

Use a <div> instead, or just go to Email Actions > HTML Tools > Replace HTML but that will disconnect the email from the template.
Josh_Hill13
Level 10
June 19, 2014
Try editing the HTML for that block, delete the P and replace with <BR> if you need a break.

Usually it is gone as long as you don't try to edit any further.
Dan_Stevens_
Level 10
June 19, 2014
It's a token (rich-text).  Placing <div> tags around the block solved it.  Thanks Justin.