Thanks for your prompt reply, I appreciate it. But [+ local $escmode=0; $my_variable_with_html_data; +] generates errors in new version2. So I just included in other block and it works fine. Have a great day.
Thanks, Sreeram -----Original Message----- From: Andrew O'Brien [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 10:55 PM To: Bazaru, Sreeram (Card Services); [EMAIL PROTECTED] Subject: RE: embedded HTML tags > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, 30 April 2004 4:36 AM > > Hello, > I have a module which gets some data from a file and displays > that data. The problem is the data in the file contains some > embedded HTML tags such as <a href> and others. When I get > and display that data dynamically using embperl, the HTML > tags are not evaluated instead it is displaying the tags as > 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=0; $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 => \$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 ********************************************************************** This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]