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@xxxxxxxxxxxxxxxxxx> wrote in message
news:1188138967.3076.4.camel@xxxxxxxxxxxxxxxxxxxxxxxx
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>
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php