최신글을 추출을 하는데요..html테그가 같이 나오네요..없애는 방법이 없을까요?
본문
최신글 스킨을 사용하여 게시물의 에디터에 있는 내용을 가져오는데 html 테그도 같이 오네요
라스트 스킨의 코드
<?php for ($i=0; $i<count($list); $i++) { ?>
<li>
<div class="img_set">
<a href="<?php echo $list[$i]['href'] ?>">
<?php
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $imgwidth, $imgheight);
if($thumb['src']) {
$img_content = '<img class="img_left" src="'.$thumb['src'].'" alt="'.$list[$i]['subject'].'" width="'.$imgwidth.'" height="'.$imgheight.'">';
} else {
$img_content = 'NO IMAGE';
}
echo $img_content;
?>
</a>
</div>
<div class="subject_set">
<div class="sub_content"><a href="<?php echo $list[$i]['href'] ?>" class="last_news"><?php echo get_text(cut_str(strip_tags($list[$i][wr_content]), 57, '...' )) ?></a></div>
</div>
</li>
<?php } ?>
없앨려면 어디를 수정을 해야할까요
고수님들의 조언을 부탁드립니다.
!-->
답변 3
$html = 0;
if (strstr($view['wr_option'], 'html1'))
$html = 1;
else if (strstr($view['wr_option'], 'html2'))
$html = 2;
$view['content'] = conv_content($view['wr_content'], $html);
답변 감사합니다.
그런데 올려주신것을 어디에 넣어야 하나요?
그누보드는 왠만 한것은 다있어요
위소스는
view.php 안에 있는내용이고요
DB table 필드 구성이 저러게되어있으니 참조해서
구현을 하라는것이여요
답변을 작성하시기 전에 로그인 해주세요.