Re: Q: HTML::Element old behaviour

David A. Lee (dave@calldei.com)
Mon, 3 Jun 1996 18:24:45 -0700 (PDT)


Running into this same basic problem where all text is encoded
has unfortunately made me decide not to use the HTML::AsSubs module
for creating HTML documents.  The inability to pass in 'raw' text
has made the HTML::AsSubs useless for me.

I did try hacking the code to recognize any string starting
with "\" as a 'raw text' which is not passed to encode_entities
but I dont like using locally hacked code, I tend to lose it when
I do updates.  I'd be glad to share what I did, but I dont think
it is the correct solution.

-David Lee

> 
>  Hi all,
> 
> I used to use a mix of HTML::* and CGI modules
> which leads to code like :
> 	body(
> 	 hr(), 
> 	 $Q->startform('POST', $Q->script_name()) , 
> 	 '<h1> ... </h1>'
> 	)
> 
> so I was really surprised by the result of the libwww-perl-5.00
> probably coming from HTML::Entities::encode_entities($node, "<>&");
> in HTML::Element.
> 
> Is there any solution to 'quote' text parts (Parser::parse() sounds
> really heavy!)
> or shall I implement ->as_HTML_as_in_the_past() ?  
> 
> And more genrally:
>  how can I concatenate 2 or more Elements without inserting a higher one:
>   ->how_concat( p(txt1) => p(txt2) => ...)   
> 
> At last, what's the position about CGI.pm or CGImodules?
> 
> Thanks in advance for suggestions and advice ...
> 
> -- 
>                       ~~~~
> Pierre-Yves Foucou  ~~~  ~~   Institut Gaspard Monge 
> foucou@univ-mlv.fr ~ ~    ~   Universite de Marne la Vallee~
> p412 DII          ~~ ~~       2 rue de la butte verte   ~ ~
> 49 32 60~55 ~ ~ ~~~ ~~ ~ ~ ~  93166 Noisy Le Grand   ~   ~  
> ~ ~ ~ ~ ~ ~ ~ ~~ ~~ ~ ~ ~~~ ~ France  ~   ~ ~ ~   ~~  ~ ~
>  ~ ~ ~ http://www-igm.univ-mlv.fr/~foucou/ ~   ~   ~   ~
> ~  ~~ ~ ~ ~ ~ ~~ ~ ~  ~~  ~ ~~  ~ ~~~  ~  ~   ~  ~  ~ ~    
> H2F%Z>B!I<R!N;W0@82!M=7-I8R!T;R!R;VQL97(@<VMA=&4@8GDA"@``
>