I have text stored in a database (type text) and I need to substitute/include html. I have to beleive that this is so common that there is a php function built and tested for this kind of thing. Some examples of what I need to accomplish follow.
"\n" needs to become "\n<P>"
www.somewhere.com needs to become <a href"http://www.somewhere.com">www.somewhere.com</a>
someone@mailserver.com needs to become
<a href"mailto:someone@mailserver.com">someone@mailserver.com</a>
Thanks,
David