Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter xDev

    (@xdev)

    Wrapping code in pre may be alright for an admin posting an entry but I’m talking about comments. I don’t think it would work telling people to do that when they want to post some code. So the way things are right now my pages won’t validate if I use wordpress because of comments with p tags inside code tags and in some cases it breaks the layout. I thought the whole selling point is this:

    We have gone to great lengths to make sure every bit of WordPress generated code is in full compliance with the standards of the W3C.

    Thread Starter xDev

    (@xdev)

    Just a test:

    function balanceTags($text, $is_comment = 0) {
    global $use_balanceTags;
    if ($is_comment) {
    $text = sanitise_html_attributes($text);
    }
    if ($use_balanceTags == 0) {
    return $text;
    }
    $tagstack = array();
    $stacksize = 0;
    $tagqueue = '';
    $newtext = '';

    I want to look at the source to see how it was parsed.

Viewing 2 replies - 1 through 2 (of 2 total)