May 2, 2002, 5:20 AM
Post #2 of 5
Re: [dmittner] HTML/Text Wrapping
[In reply to]
Isn't it possible to take the text returned by the Text::Wrap object do
a substitution of line breaks with html breaks instead? Actually, I can
guess that you'd have to do several substitutions (i.e. "\n\n" is replaced with
<P>, all remaining "\n" characters would be replaced with <BR>, etc.).
If the text is input as html, do a reverse replacement to store it in the DB.
You may need a separate feild in the database to tell you what the original
input came in as (i.e. text or html).
print unpack"u*",pack "h*",$a,"\n\n";