Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Stripping HTML out of Paragraph element

Open reverbunit opened this issue 8 years ago • 2 comments

  1. I placed a PARAGRAPH element into my page.
  2. I add code to the code to the TEXT editor.
  3. I publish the page
  4. When I preview the page the HTML is stripped out.

Any inline code is stripped from the rendered page.

adding element: screen shot 2018-02-03 at 11 50 06 am

pasting CODE: screen shot 2018-02-03 at 11 50 17 am

Rendered page minus code. screen shot 2018-02-03 at 11 50 37 am

reverbunit avatar Feb 03 '18 17:02 reverbunit

Hey, just add this peace of code to your functions.php

remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); remove_filter('comment_text', 'wpautop');

MaxSakur avatar Feb 26 '18 18:02 MaxSakur

There is no way to do that. If you want to use html in option type editor add a textarea or you can try to use tags

with classes. The issue occurs because we use some triggers js events like click, resize to refresh editor we tried several methods but no result has been obtained.

ViorelEremia avatar Feb 27 '18 10:02 ViorelEremia