
03-02-2006
|
|
|
Re: replace all _self with _blank
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
|