Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: ASCII to HTML

by btrott (Parson)
on Apr 04, 2000 at 23:16 UTC ( [id://6867]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use HTML::FromText;
    
    ...
    TEXT
    
    print text2html($str, paras => 1);
    
  2. or download this
    <P>Foo is on this line,
    and bar is in this paragraph.</P>
    <P>Baz is in a new paragraph.</P>
    
  3. or download this
    $str =~ s/\n\n/<p>\n\n/g;
    $str =~ s/\n/<br>\n/g;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://6867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found