자기소개에 html태그막기 적용하는법 정보
자기소개에 html태그막기 적용하는법본문
<?
// 자기소개 데이터
$profile=get_member($view[mb_id], "mb_profile");
// 프로필이 있을 때
if($profile['mb_profile']){?>
<? echo ($profile['mb_profile']);?>
<?
} else {
echo "소개 내용이 없습니다.";
}
?>
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=208933#c_208951
요거 적용하는법좀알려주세욥
알려주셨는데 적용하는법을 모르겠음..ㅎㄷ;
// 자기소개 데이터
$profile=get_member($view[mb_id], "mb_profile");
// 프로필이 있을 때
if($profile['mb_profile']){?>
<? echo ($profile['mb_profile']);?>
<?
} else {
echo "소개 내용이 없습니다.";
}
?>
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=208933#c_208951
요거 적용하는법좀알려주세욥
알려주셨는데 적용하는법을 모르겠음..ㅎㄷ;
댓글 전체

<? echo ($profile['mb_profile']);?>
이거를
<? echo strip_tags($profile['mb_profile']);?>
이렇게 하세요..
줄바꿈을 지원하려면
<? echo nl2br(strip_tags($profile['mb_profile']));?>
이렇게 하시면 될것 같네요
이거를
<? echo strip_tags($profile['mb_profile']);?>
이렇게 하세요..
줄바꿈을 지원하려면
<? echo nl2br(strip_tags($profile['mb_profile']));?>
이렇게 하시면 될것 같네요
ㄳ합니다ㅋ;