Zend - The PHP Company




Code Gallery: hdn


URL hilight  

Type: code fragment
Added by: hdn
Entered: 14/10/2003
Last modified: 02/11/2002
Rating: - (fewer than 3 votes)
Views: 3608
A function to efficiently and CORRECTLY hilight any non-linked url in a text or html document. This is accomplished by first lifting all linked urls and urls that shouldn't be linked - such as those in embed, img, link ... tags. Then it will link urls that should be linked. Finally, it puts previously lifted urls back where they belong.




Search