게시판에 html로 글을 쓰든 에디터로 해서 작성했을때...
글자크기를 준다던지 어느글자는 폰트색깔을 주었을때
최근게시물에도 해당 글처럼 내용이 보여질때 똑같게 보일수 없는건가요?
html로 글을 작성했을경우 최근 게시물 내용보기에서 그대로 태그로 되어
나오네요..ㅠ_ㅠ
혹시 가능한 방법이 있을까요?
조언 부탁드리겠습니다~~~
-------내용 보여주는 최근 게시물-----------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<? for ($i=0; $i < 1; $i++) {
echo "<div style='padding:2 0 2 0'>";
if ($list[$i]['is_notice']) { }
else {
//echo "<font style=color:998877;font-size:8pt;>".$list[$i][datetime2]."</font> ";
//echo "<a href='{$list[$i]['href']}' style=color:#666666;>";
//echo "<b>{$list[$i]['subject']}</b>";
//echo $list[$i]['icon_new'];
if ($list[$i]['comment_cnt']) {
echo " <span style='font-size:7pt;color:tomato;'>{$list[$i][comment_cnt]}</span>"; } }
echo "<a href='{$list[$i]['href']}' style=color:#666666;>";
$wr_content = cut_str(get_text($list[$i][wr_content]),600);
echo "<div style='color:#666666;'>".$wr_content;
echo "</div></div>";
} ?>
<? for ($i=1; $i<count($list); $i++) {
echo "<div style='padding:2 0 2 0'>";
if ($list[$i]['is_notice']) { }
else {
echo "<font style=color:998877;font-size:8pt;>".$list[$i][datetime2]."</font> ";
echo "<a href='{$list[$i]['href']}' style=color:#666666;>";
echo "<b>{$list[$i]['subject']}</b>";
echo "</a> ";
echo $list[$i]['icon_new'];
if ($list[$i]['comment_cnt']) {
echo " <span style='font-size:7pt;color:tomato;'>{$list[$i][comment_cnt]}</span>"; } }
echo "</div>";
} ?>
<? if (count($list) == 0) { ?><div align=center style=height:50px;><font color=#6A6A6A>게시물이 없습니다.</a></div><? } ?>
글자크기를 준다던지 어느글자는 폰트색깔을 주었을때
최근게시물에도 해당 글처럼 내용이 보여질때 똑같게 보일수 없는건가요?
html로 글을 작성했을경우 최근 게시물 내용보기에서 그대로 태그로 되어
나오네요..ㅠ_ㅠ
혹시 가능한 방법이 있을까요?
조언 부탁드리겠습니다~~~
-------내용 보여주는 최근 게시물-----------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<? for ($i=0; $i < 1; $i++) {
echo "<div style='padding:2 0 2 0'>";
if ($list[$i]['is_notice']) { }
else {
//echo "<font style=color:998877;font-size:8pt;>".$list[$i][datetime2]."</font> ";
//echo "<a href='{$list[$i]['href']}' style=color:#666666;>";
//echo "<b>{$list[$i]['subject']}</b>";
//echo $list[$i]['icon_new'];
if ($list[$i]['comment_cnt']) {
echo " <span style='font-size:7pt;color:tomato;'>{$list[$i][comment_cnt]}</span>"; } }
echo "<a href='{$list[$i]['href']}' style=color:#666666;>";
$wr_content = cut_str(get_text($list[$i][wr_content]),600);
echo "<div style='color:#666666;'>".$wr_content;
echo "</div></div>";
} ?>
<? for ($i=1; $i<count($list); $i++) {
echo "<div style='padding:2 0 2 0'>";
if ($list[$i]['is_notice']) { }
else {
echo "<font style=color:998877;font-size:8pt;>".$list[$i][datetime2]."</font> ";
echo "<a href='{$list[$i]['href']}' style=color:#666666;>";
echo "<b>{$list[$i]['subject']}</b>";
echo "</a> ";
echo $list[$i]['icon_new'];
if ($list[$i]['comment_cnt']) {
echo " <span style='font-size:7pt;color:tomato;'>{$list[$i][comment_cnt]}</span>"; } }
echo "</div>";
} ?>
<? if (count($list) == 0) { ?><div align=center style=height:50px;><font color=#6A6A6A>게시물이 없습니다.</a></div><? } ?>
댓글을 작성하시려면 로그인이 필요합니다.
댓글 2개
해결 : 15라인의 소스코드를 하단처럼 수정
//$wr_content = cut_str(get_text($list[$i][wr_content]),600);//원본
$wr_content = cut_str($list[$i][wr_content],600);//수정
답변 정말 감사드립니다~~^-^
즐건 하루 되세요~~~!! ^^