maybe you can help me out... what I am trying to do here is a function to convert all links into [LINK] and [/LINK] tags, pretty much the opposite of this board function where, to insert a link you have to put [url] tags around it...
my problem is that I am not sure what the user is going to input... he could enter this:
<a href="http://link.com">link</a>
or this:
<a href='http://link.com'>link</a>
or this:
<a href="http://link.com" target="_top">link</a>
or this:
<a target='_blank' href="http://link.com">link.com</a>
or ANY combination of any of the above...
so I was wondering if it would be too hard to wring a function that is able to take all these possibilities into account...
Does anybody have an idea?
I couldn't figure it out... too many variables... the single or double quotes, the targets (blank, top, whatever), where the target is put (before or after href) etc etc...