Нужен скрипт обработки ссылок.
Есть ссылка вида:
<a href="javascript:if(confirm('http://teensexmania.com/jump.php?account=12 \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://teensexmania.com/jump.php?account=12'" tppabs="http://teensexmania.com/jump.php?account=12"><IMG height=193 alt="Teen Sex Movs" src="tsm2.jpg" tppabs="http://teenmegaworld.com/index_files/tsm2.jpg" width=218 border=0></a>
Нужно получить:
<a href="http://teenmegaworld.com/index_files/tsm2.jpg" width=218 border=0></a>
<?php
$source =<<<EOF
<a href="javascript:if(confirm('http://teensexmania.com/jump.php?account=12 \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://teensexmania.com/jump.php?account=12'" tppabs="http://teensexmania.com/jump.php?account=12"><IMG height=193 alt="Teen Sex Movs" src="tsm2.jpg" tppabs="http://teenmegaworld.com/index_files/tsm2.jpg" width=218 border=0></a>
EOF;
<?php
$text =<<<HTML
<a href="javascript:if(confirm('http://teensexmania.com/jump.php?account=12 \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://teensexmania.com/jump.php?account=12'" tppabs="http://teensexmania.com/jump.php?account=12"><IMG height=193 alt="Teen Sex Movs" src="tsm2.jpg" tppabs="http://teenmegaworld.com/index_files/tsm2.jpg" width=218 border=0></a>
HTML;