in reply to Self printing strings!

Rather than using <pre></pre>, use <CODE></CODE> tags as per the Site How To. This will correctly escape brackets, ampersands, etc. I tried to include the correct version, but the source is so garbled, I'm not sure what you intended :-).

Replies are listed 'Best First'.
RE: RE: Self printing strings!
by Abigail (Deacon) on Jul 15, 2000 at 02:38 UTC
    Urg. <CODE> is already a valid HTML element, and it's an inline element, not a block. :-(

    -- Abigail

RE: RE: Self printing strings!
by Ovid (Cardinal) on Jul 14, 2000 at 20:45 UTC
    Actually, you can check out Using PerlMonks code to clean up source code that's been printed with <PRE> tags. It's a little script I wrote to make PM code a bit easier to work with. However, you'll want to replace the last regex with the following:
    s/<a href="[^"]+">([^<]+)<\/a>/[$1]/g;