WordPress.org

Ready to get started?Download WordPress

Forums

Raw HTML
Bug : end tag p added after (2 posts)

  1. Mistraldor
    Member
    Posted 3 years ago #

    Hello,

    I used this plugin because of parasite p tag in my outputed code. I was happy but I wanted validate my site and there, I notice the plugin generate a p end tag after the end_raw tag.
    How to fix it ? I use the HTML editor in wordpress.

  2. Janis Elsts
    Member
    Plugin Author

    Posted 3 years ago #

    It's WordPress that generates those <p> tags. In most cases, you can avoid them by placing your content on the same line as the <!--end_raw--> tag, not on a new line.

    Will get a <p> tag:

    ...
    <!--end_raw-->
    Lorem ipsum...

    Shouldn't get a <p> tag:

    ...
    <!--end_raw--> Lorem ipsum...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic