• Hello fellow WPers,

    The read more function is giving me unclosed html tags. (actual the users are generating this in their posts)

    For example:
    <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vel tellus. Proin molestie mauris non sem. <!–readmore–> Morbi pretium imperdiet nisl.</div>

    The above example will keep the <div> unclosed. Is this a know problem and/or is there a fix for it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same problem, but when i set WP-Super-Cache from Off to Half-on mode seems like all works fine, tags are closed now.

    naah i was wrong. the tags unclosed. :(((((

    WordPress 2.7.1.

    I found a problem in /wp-includes/post-template.php

    function the_content($more_link_text = null, $stripteaser = 0, $more_file = ”) {
    $content = get_the_content($more_link_text, $stripteaser, $more_file);
    // $content = apply_filters(‘the_content’, $content);

    }

    Just comment apply_filters line and all will work almost like in previous versions of WP, seems one of filters have a bugs ’cause tag balance function works fine.
    It’s just a workaround and i hope it will be fixed ASAP.

    Interesting thing, if i comment
    add_filter('the_content', 'wpautop'); in /wp-includes/default-filters.php then all works fine, but the function is identical to the function in WP 2.7[.0]… maybe some conflict with another default filters…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Read more function causes unclosed html tags’ is closed to new replies.