Re: Non-trivial task of converting text to HTML

From: Date: Wed, 07 Dec 2005 22:49:10 +0000
Subject: Re: Non-trivial task of converting text to HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-227092@lists.php.net to get a copy of this message
Quoting Roman Ivanov <gamblergluck@yahoo.com>:
Output text should be correctly formatted without using lots of br's and &nbsp;'s. Doing so manually is not a problem, I would just use <p> for web paragraphs, and <p class="book"> for book paragraphs. However, formatting such text with a scrip is very difficult. Does anyone knows a good exaple of such script?
How do you intend to distinguish between a web paragraph and a book paragraph? How can you even accomplish this manually?

« previous php.general (#227092) next »