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;