메신저 php 및 DomDocument가 재생 중입니다. 기본적으로 일부 html은 db에 저장되어 있습니다. 다른 URL 앵커 태그로 .... 나는 #PHP 태그 속성 가져 오기 및 설정
로 대체 할 allowedurl 목록 내에서 앵커 태그하는 HREF하지를 강제 할 예 DB1
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<a href="viewprofile.php?userid=780">Edrine Kasasa </a> has
</td>
<td valign="top">
invited 10 friend(s) to veepiz using the <a href="invite.php">Invite Tool</a>
</td>
</tr>
</tbody>
에서
$allowed_url_basenames = array('viewprofile.php','viewalbum.php');
샘플 내용
나는 첫 번째 앵커 태그 href를 그대로두고 두 번째를 href = '#'로 변경하는 PHP 함수를 원합니다.