02-18-2008, 03:33 AM
|
#2 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by WinSrev
Hey,
So, i've created a nifty little function that makes URL's secure, the problem is; i'm not entirely sure how to initialize it. For example lets say theres some code: <a href="http://google.com"> i need a preg_replace that'd be able to replace what's in the the href tag and be able to run that through lets say myFunction($url) and it wouldn't matter if the <a tag was closed neither.
Any ideas?
Thanks in advanced.
|
You mean like this:
PHP Code:
<a href="<?=$url?>">The Link</a> <?php // Initirilze ( bad english ) it myFunction($url); ?>
I don't quite understand what you want?
__________________
VillageIdiot can have my babbies ;d
|
|
|
|