Re: text to HTML
| From: | M. Sokolewicz | Date: | Sat, 01 Sep 2007 00:28:38 +0000 |
| Subject: | Re: text to HTML | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261578@lists.php.net to get a copy of this message | ||
Dan wrote:
As I know there's no real WYSIWYG text to html converters. Plus this wouldn't do much more than handling paragraphs and new lines. If you're looking for a way to write html from a textbox check out FCKEditor. Sorry I couldn't help much. If you really do have only the limited need of paragaphs and newlines then go with Ron's solution, it'll work just fine. - Dan "Ron Piggott" <ron.php@actsministries.org> wrote in message news:1188138967.3076.4.camel@localhost.localdomain...Since using <p> to insert line-breaks is bad style, use <br> instead (or the <br /> variant if using XHTML). You can use php's built-in nl2br() function to do this.Is there a PHP command that turns text into HTML? EXAMPLE: "before" Hi. How are you doing? "after" Hi.<p> How are you doing?<p>