Support

Home Forums Event Espresso Premium EE completely stripping P and BR tags from the WYSIWYG

EE completely stripping P and BR tags from the WYSIWYG

Posted: March 12, 2014 at 1:01 pm


Dan Stover

March 12, 2014 at 1:01 pm

Hello all,

I have an issue with EE (3.1.35.1.P)
The visual editor for the Event Description section is completely removing <p> and <br> tags, leaving only  . This is causing all of the text to be squished together. I can remedy this by manually typing in <p> tags to the paragraphs, but that’s not the solution I want to present to the end-user.

Any insight would be appreciated. Thanks.


Lorenzo Orlando Caum

  • Support Staff

March 12, 2014 at 1:18 pm

Hi there Dan,

Could you try using the formatting toolbar that appears above the event description area?

http://cl.ly/image/3A3E080Q0i37

Also, you are running an old version of Event Espresso. Could you please backup your WordPress and update?

https://eventespresso.com/wiki/change-log/


Lorenzo


Dan Stover

March 12, 2014 at 1:50 pm

All tags remain solid, except the P and BR tags.

I’m making some progress on my end. Added this to the themes functions.php:

<code>if ( !is_admin() ){
	add_filter(&#039;the_content&#039;, &#039;espresso_raw_formatter&#039;, 99);
}</code>

That is stopping EE from stripping the P tags in the WYSIWYG… but it’s also spamming the rest of my event page with P tags galore. Not terribly worried about that though, because I can just hack them out with CSS and or jQuery.

What exactly is this code doing? Will it affect ANY OTHER PART of the site OTHER THAN EE? (this is an important question)

<code>
if ( !is_admin() ){
	add_filter(&#039;the_content&#039;, &#039;espresso_raw_formatter&#039;, 99);
}</code>

Thanks in advance!


Lorenzo Orlando Caum

  • Support Staff

March 12, 2014 at 8:07 pm

Hi Dan,

I misunderstood your original question so I’ve taken another look at this.

I created a test event and add spacing between the sentences and it appears to be holding:

http://cl.ly/image/1H0C1T2J1X3S
http://cl.ly/image/452G0J173D0e

Have you tried updating to the latest version:

https://eventespresso.com/wiki/change-log/#3.1.36.4


Lorenzo

The support post ‘EE completely stripping P and BR tags from the WYSIWYG’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso