Viewing 7 replies - 16 through 22 (of 22 total)
  • There’s one more thing I noticed! Ever been in the habit of copying and pasting from your favortie news sources like MSNBC (especially that)? Their ellipses, em and en dashes, and sexy quotes are copied as is, and though they are displayed in the browser, this may cause non-SGML character errors. You’ll have to go in the quote and change these characters either to the ones with the amps or the texturize comversions.

    Mike: Yes I’ve commented it out. till a problem.

    Hi Michael,
    The first error showing at the moment is caused by using blockquote inside a paragraph tag. They are both block elements and cannot be nested.
    You have paragraph tags around your call to <?php the_content() ?> This will mean that if you include paragraph tags or blockquote tags in your story it will always be invalid.
    Which filters do you have turned on? (At the bottom of b2vars.php)
    Mike

    Thread Starter Michael Heilemann

    (@michael)

    There are no P elements in my index.php!
    Here’s the end of my b2vars.php, as you can see I’ve had to make some costumization due to problems when I switched to an Apache server:
    add_filter(‘all’, ‘wptexturize’);
    // add_filter(‘the_content’, ‘wpautop’);
    add_filter(‘comment_text’, ‘wpautop’);
    // Uncomment the following for Textile support
    // include_once(‘textile.php’);
    $res = include_once(‘/STORE/binarybonsai_com/public_html/b2-include/textile.php’);
    if(!res) {
    if( !in_array(‘/STORE/binarybonsai_com/public_html/b2-include/textile.php’, get_included_files()) ) {
    echo “The file ‘/STORE/binarybonsai_com/public_html/b2-include/textile.php’ does not exists”;
    exit(1);
    }
    }
    add_filter(‘the_content’, ‘textile’);
    // There is some duplication of effore so textile.php really should be tweaked to eliminate that.
    ?>

    Hmmm.
    I have exactly the same settings as you (just a plain include_once(‘textile.php’)), and where ever I use a bq. or quotes of any kind, I don’t get the same validation issues you have.
    I notice that your current blog page does validate correctly, even though some of the titles and posts have quotes in them.
    But if you go back to https://binarybonsai.com/index.php?m=20030621 then this doesn’t validate.
    I even tried copying nad pasting your “WISH 52: What kind of gamer am I?” story into my wordpress reformatting it back to textile and ist doesn’t produce the

    that you have.
    I’m a little confused. Are you using textile syntax for that post? Or do you have the html tags in the post?
    Mike

    Thread Starter Michael Heilemann

    (@michael)

    I use the blockquote tag rather than bq. — Will that make a difference?

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Validation problem, ‘ in title turns into ?’ is closed to new replies.