HTML Input - Auto Format URL's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm currently looking into the best way to approach this.

Users will be allowed to enter HTML, but I want to add the ability to 
automatically format URL's and e-mail addresses.
The problem here is before formatting URL's we need to ignore URL's that are 
already used in HTML tags and that are already formatted as hyperlinks.

First I am thinking if its possible to achieve this with various regular 
expression patterns.
Another is to do a first pass of the input and find out what to ignore, then 
on a second pass with format the links that were determined to be formatted.

I am welcome to any suggestions about this.

Thanks. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux