-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, Aug 18, 2004, at 13:59 US/Eastern, Steve Edberg wrote:
At 08:37 AM 8/18/04, leegold wrote:
Question I have wondered about: Is it a good practice to put html in a
text field, then (eg. via php) when the marked-up text renders in a
user's browser it's good looking html. If not, then I'd just sandwitch
field content in a <p></p> when it's rendered. Though, seems like it
would mess-up fulltext searching in a marked-up text field(?). Thanks.
Lee G.

I'd say that in general, it's best to avoid storing markup with text, because (1) as you say, it could mess up fulltext search statistics, and (2) it makes it more complex to repurpose that data - eg; export it to PDF instead of HTML. It's best to keep rendering separate from content.

Amen. I've recently had good luck using the Markdown text format; for a description of the format, see <http://daringfireball.net/projects/markdown/>, and <http://www.michelf.com/projects/php-markdown/> for PHP functions to render Markdown-formatted text into valid XHTML.


pjm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFBJLApnRVGoRROKxIRAuzpAJ9DiG0xqD86boVViltNWNn0ORhHwACeMLoQ
I7vJrvYmO7g6Ugf3QCx8eT4=
=DIfU
-----END PGP SIGNATURE-----


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to