in reply to Re: HTML module help please?
in thread HTML module help please?

The closing </p> tags are optional. Run the test data at Re: HTML module help please? to see why this is broken.

cheers

tachyon

Replies are listed 'Best First'.
Re^3: HTML module help please?
by Your Mother (Archbishop) on Sep 01, 2004 at 18:17 UTC

    Oh, of course, you're right. I've become so accustomed to well formed xhtml that I forget what the web really looks like :) Mine will fail on any unclosed paras. I tried fixing it but your approach is much more sound for it. One thing mine does that yours omits is retains the attribute tags for the original para. But that's easy to update.

    print '<blockquote>'; # becomes print CGI::start_blockquote( $attr );

      retains the attribute tags for the original para

      Ah but is that a feature or a bug ;-)

      cheers

      tachyon

      Thanks again, YM and tachyon.

      My P tags are all closed, and there are no attributes for me to worry about, but I really appreciate your efforts and your thoroughness.



      ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
      =~y~b-v~a-z~s; print