Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 88558 invoked from network); 30 Apr 2004 02:54:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Apr 2004 02:54:49 -0000 Received: (qmail 95357 invoked by uid 500); 30 Apr 2004 02:54:30 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 95342 invoked by uid 500); 30 Apr 2004 02:54:29 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 95319 invoked from network); 30 Apr 2004 02:54:29 -0000 Received: from unknown (HELO tardis.oriel.com.au) (203.111.78.133) by daedalus.apache.org with SMTP; 30 Apr 2004 02:54:29 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: embedded HTML tags Date: Fri, 30 Apr 2004 12:54:36 +1000 Message-ID: <726BBD5D17FD0745ABC7B1E5A41111A2028A62@tardis.oriel.com.au> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: embedded HTML tags Thread-Index: AcQuGMZV6zByYYDZRVCku5b/ZgYr8gARIbGw From: "Andrew O'Brien" To: , X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > From: Sreeram_Bazaru@bankone.com [mailto:Sreeram_Bazaru@bankone.com]=20 > Sent: Friday, 30 April 2004 4:36 AM > > Hello, > I have a module which gets some data from a file and displays=20 > that data. The problem is the data in the file contains some=20 > embedded HTML tags such as and others. When I get=20 > and display that data dynamically using embperl, the HTML=20 > tags are not evaluated instead it is displaying the tags as=20 > it is. How do I evaluate those HTML tags and display the result. Sreeram, If all you want to do is include the data in the page that is output, you need to tell embperl not to html-escape it when it prints it out. You can do this on the fly like so: [+ local $escmode=3D0; $my_variable_with_html_data; +] Have a look in the documentation for escmode for a fuller explanation. If you want to process the HTML snippet with embperl (to fill in form pieces, for example) as it is being printed out then: [- Execute({input =3D> \$my_variable_with_html_data, = %other_execute_args}) -] Again, the documentation for Execute will help you here. Cheers, Andrew PS. This was for embperl 1.3.x --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org