[ILUG-Webdev] PHP - converting HTML entities outside tags

Lee Hosty hostyle at csn.ul.ie
Wed Aug 25 12:34:26 IST 2004


On Wed, 25 Aug 2004, Kae Verens wrote:

> Lee Hosty wrote:

[snip]

> > ie. user inputs <a href="whatever.html" target='new_target'>"my amazin'
> > links & stuff"</a>
> >
> > needs to be converted to <a href="whatever.html"
> > target='new_target'>&quot;my amazin&#039; links &amp; stuff&quot;</a>
> >
> > Any ideas? I'm new to PHP and would rather not re-invent any wheels.

[snip]

> I'm afraid we /did/ re-invent the wheel in that case, but only because I
> started writing that convertor well before I heard of similar scripts such as
> Textism (http://www.textism.com/tools/textile/).

[snip]

Good call. I got the latest version (supports nested lists and other
things missing in the original) at
http://jimandlissa.com/project/textilephp

Thanks.



More information about the Webdev mailing list