Mailing List Archive

help on escaping
Pls help me on this.

how can i make this work?
[+ "<b> HI! <\b>" +]

thanks.
Re: help on escaping [ In reply to ]
i made a mistake in <\b>. it is supposed to be </b>.
i think i made it work by doing like this
[+ "\\\\<b\\> HI! \\\\<\/b\\>" +]


Sherwin Daganato writes:
>Pls help me on this.
>
>how can i make this work?
>[+ "<b> HI! <\b>" +]
>
>thanks.
Re: help on escaping [ In reply to ]
Sherwin Daganato wrote:
>
> i made a mistake in <\b>. it is supposed to be </b>.
> i think i made it work by doing like this
> [+ "\\\\<b\\> HI! \\\\<\/b\\>" +]
>
> Sherwin Daganato writes:
> >Pls help me on this.
> >
> >how can i make this work?
> >[+ "<b> HI! <\b>" +]
> >
> >thanks.

try setting $optRawInput = 1

However, normally, one would put html and text by itself. If you need to
print it conditionally, use [$ if $condition $] some text [$ endif $]

hope this helps.

ilia.
Re: help on escaping [ In reply to ]
Did you try to use escmode=0 in in general configuration
or locally:

[- $HTML::Embperl::escmode=0; -]
[+ "<b> HI! <\b>" +]
[- $HTML::Embperl::escmode=1; -]

Hope it helps...

On Thu, 22 Jun 2000, Sherwin Daganato wrote:

> Pls help me on this.
>
> how can i make this work?
> [+ "<b> HI! <\b>" +]
>
> thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>
RE: help on escaping [ In reply to ]
>
> Did you try to use escmode=0 in in general configuration
> or locally:
>
> [- $HTML::Embperl::escmode=0; -]
> [+ "<b> HI! <\b>" +]
> [- $HTML::Embperl::escmode=1; -]
>

This could be written as

[+ local $escmode = 0 ; "<b> HI! <\b>" +]

but it will only work if optRawInput is set (which should be done anyway if
you are directly editing the html source). If optRawInput is not set,
because you are using a highlevel html editor, you have to write

[+ local $escmode = 0 ; "&lt;b&gt; HI! &lt;\b&gt;" +]

which will a normal high level html editor do for you.

Better would be writing:

<b>[+ "Hi!" +]</b>

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 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------