LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

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

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell