
fashimpaur
User
/ Moderator
May 2, 2002, 5:20 AM
Post #2 of 5
(2060 views)
|
|
Re: [dmittner] HTML/Text Wrapping
[In reply to]
|
Can't Post
|
|
dmittner, 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). HTH, Dennis $a="c323745335d3221214b364d545". "a362532582521254c3640504c3729". "2f493759214b3635554c3040606a0", print unpack"u*",pack "h*",$a,"\n\n";
|