Posted by Marcin Dobrucki on 03/02/06 14:54
bboldi wrote:
> Hi!
>
> I have a string containing a HMTL page.I need to insert target="_blank"
> where targer attribute is not present within <a... TAG, and replace
> other target attributes - example target="_self" - to _blank. Can
> anyone help me? Thanx in advance, and sorry for my english.
how about:
http://www.php.net/manual/en/function.str-replace.php
http://php.net/preg_replace
Navigation:
[Reply to this message]
|