I'm trying to add a cleaner to Script_OnFlush so that our pages
will validate properly at http://validator.w3.org/:

  sub Script_OnFlush {
    my $data = $Response->{BinaryRef};

    # This is experimental. Allows our docs to validate HTML 4.01 by
    # converting '&' to '&' in hrefs.

    $$data =~ s{href=["']([^"']+?)["']}{ my $url = $1;
                                         $url =~ s/&/&/g;
                                         qq{href="$url"}
                                       }sgie;
  }

Am I correct in assuming the session-id is injected /after/ the
Script_OnFlush event? If so, can anyone think of a workaround
other than the overhead of HTML::Filter?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to