• Resolved Optimizing Matters

    (@optimizingmatters)


    I have a WordPress plugin (wp youtube lyte) that hooks into the “the_content” filter, adds some HTML and returns the content.

    The resulting rendered HTML is slightly different from what I added, with linebreaks being added after opening or closing divs and -more importantly- unbalanced tags being added, even when no other plugin is active.

    I’ve tried removing the “wpautop” filter, but that seems not to fix my problem.

    I can’t find any documentation on what might be happening, hope someone can point me in the right direction?

    frank

Viewing 1 replies (of 1 total)
  • Thread Starter Optimizing Matters

    (@optimizingmatters)

    I’ve tried removing the “wpautop” filter, but that seems not to fix my problem.

    I was doing it wrong, it _is_ wpautop (which messes things up due to <meta> and <noscript> tags in the HTML I add to the_content).

    Who knows this is useful for someone some day … 😉

Viewing 1 replies (of 1 total)
  • The topic ‘core filter on the_content altering outputted HTML?’ is closed to new replies.