최근게시물 태그 출력 없애는 방법 부탁합니다. 정보
최근게시물 태그 출력 없애는 방법 부탁합니다.본문
최근게시물에 iframe 소스가 함께 노출되는 현상 없애는 방법 문의드립니다.
고수님들 부탁입니다.
<tr>
<td width="144" height="55" rowspan="2"><p align="left"><a href="<?=$list[$i][href]?>"><img src="<?=$img?>" class="file-img-b"></a></p></td>
<td width="2" height="55" rowspan="2"> </td>
<td width="1589" height="27">
<p><a href="<?=$list[$i][href]?>"><b><font face="궁서" color="#333333"><span style="font-size:12pt;"><?=$list[$i][wr_1]?></span></font></b></a></p></td></tr><tr>
<td width="1589" height="27"><p><span style="color:#333333; font-size:12px"><?=cut_str(strip_tags($list[$i][wr_content]),500,"...")?></span></p>
</td>
</tr>
이부분을 수정해 야하는 것 같은데 고수님들 부탁합니다
고수님들 부탁입니다.
<tr>
<td width="144" height="55" rowspan="2"><p align="left"><a href="<?=$list[$i][href]?>"><img src="<?=$img?>" class="file-img-b"></a></p></td>
<td width="2" height="55" rowspan="2"> </td>
<td width="1589" height="27">
<p><a href="<?=$list[$i][href]?>"><b><font face="궁서" color="#333333"><span style="font-size:12pt;"><?=$list[$i][wr_1]?></span></font></b></a></p></td></tr><tr>
<td width="1589" height="27"><p><span style="color:#333333; font-size:12px"><?=cut_str(strip_tags($list[$i][wr_content]),500,"...")?></span></p>
</td>
</tr>
이부분을 수정해 야하는 것 같은데 고수님들 부탁합니다
댓글 전체
wr_content 안에 iframe 소스가 같이 들어 있기 때문에 노출이 되는 것으로 보입니다.
preg_match_all(), preg_replace() 등의 함수를 이용해서 <iframe ~></iframe> 부분을
wr_content 내용에서 제거한 후 보여주면 되겠습니다.
preg_match_all(), preg_replace() 등의 함수를 이용해서 <iframe ~></iframe> 부분을
wr_content 내용에서 제거한 후 보여주면 되겠습니다.
"<?=cut_str(strip_tags($list[$i][wr_content]),500,"...")?> 요걸 땐겨 오지 마시고요 외부로 노출될설명을 여분필드 wr_1 을 사용해서 <?= $list[$i][wr_1]?> 간단하게 쓰는걸 권해 드립니다