--- Jeremy Webster <[EMAIL PROTECTED]> wrote: > > I have a form in which people can enter text, and then my perlscript spits it > back out onto a web page. I know that if someone were to enter html code as > text, then it could/would screw up the generated page. Is there a standard > way to handle this? Or will I need to just parse through the input string > and pick out all the brackets? > > Thanks
use HTML::Entities; my $data = encode_entities( $text_for_web_page ); # data now safe for web page Cheers, Curtis "Ovid" Poe ===== Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]