You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Andrew O'Brien <an...@switchonline.com.au> on 2001/05/24 05:43:33 UTC

Re: Is it possible to use "print OUT" to create HTML tags?

On Wed, May 23, 2001 at 11:33:20PM -0700, Michael George III wrote:
> Just in case anyone wants the solution:
> 
> <html> <body>
> [- local $escmode=0; print OUT "\<B> Hello World \</B>"; -]
> </body> </html>

You don't need "\<" in the string with $escmode=0, "<" is fine.

-- 
 Andrew O'Brien
 andrewo@switchonline.com.au.
 http://www.switchonline.com.au./

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Is it possible to use "print OUT" to create HTML tags?

Posted by Gerald Richter <ri...@ecos.de>.
> On Wed, May 23, 2001 at 11:33:20PM -0700, Michael George III wrote:
> > Just in case anyone wants the solution:
> >
> > <html> <body>
> > [- local $escmode=0; print OUT "\<B> Hello World \</B>"; -]
> > </body> </html>
>
> You don't need "\<" in the string with $escmode=0, "<" is fine.
>

You need the \ if you don't have set optRawInput. Basic rule: If you writing
your html page with a ascii editor, always set optRawInput, if you write
with an html editor (like Frontpage or Dreanweaver) don't set it. The last
sort of editor will write to the file

print OUT "&lt;B&gt; Hello World &lt;/B&gt;";

and without optRawInput set Embperl will translate it back to < and >

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org