SiGiN has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to put up my own (a little bit customized) webmail script. I've figured out how to convert HTML to Text
Something like this:
use HTML::Scrubber; my $scrubber = HTML::Scrubber->new; my $result=$scrubber->scrub_file('index.htm');
But I just can't find any possible way to convert text to HTML (like most webmails do - replacing links with A tag, escaping unsafe characters and so on)
I am not lazy to write my own code for this, but I am afraid that this have been done many times already, as well as I am afraid of making little and obvious mistakes, leaving script vulnerable to obvious XSS)
Thanks in advance. Sincerely Timo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text to HTML convert.
by jeffa (Bishop) on Oct 07, 2004 at 14:56 UTC | |
by FoxtrotUniform (Prior) on Oct 07, 2004 at 18:58 UTC | |
by SiGiN (Initiate) on Oct 07, 2004 at 17:29 UTC | |
by tachyon (Chancellor) on Oct 08, 2004 at 03:06 UTC | |
|
Re: Text to HTML convert.
by Grygonos (Chaplain) on Oct 07, 2004 at 14:30 UTC | |
by muntfish (Chaplain) on Oct 07, 2004 at 15:07 UTC | |
by jeffa (Bishop) on Oct 07, 2004 at 16:50 UTC | |
|
Re: Text to HTML convert.
by Intrepid (Curate) on Oct 07, 2004 at 19:57 UTC | |
|
Re: Text to HTML convert.
by swaroop.m (Monk) on Oct 08, 2004 at 09:42 UTC |