갑자기 멍청해 졌어요 .. 출력부분 태그로 도배되어 나옵니다. ㅠㅠ 정보
갑자기 멍청해 졌어요 .. 출력부분 태그로 도배되어 나옵니다. ㅠㅠ
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
게시판 view.skin.php 에서의 내용출력 부분은 다음과 같습니다.
게시판에는 아래와 같이 출력됩니다.
테스트<BR><BR>테스트<BR><BR><IMG style="VERTICAL-ALIGN: middle" alt="" src="../cheditor4/icons/em/2.gif" border=0>
요렇게 뿌려집니다. 아예 태그로 .... 한 두어달 쉬었더니만 진짜로... 갑자기 멍청해 졌어요 ..
DHTML 이 문제일수도 있어서 사용하지 않으면 정상 출력이 됩니다만... 게시판의 성격 상 꼭, DHTML 을 사용해야 하니 ...
오류 주소 :
게시판 view.skin.php 에서의 내용출력 부분은 다음과 같습니다.
<!-- 내용 출력 -->
<span id='writeContents' class="ct lh"><?=$view[content];?></span>
게시판에는 아래와 같이 출력됩니다.
테스트<BR><BR>테스트<BR><BR><IMG style="VERTICAL-ALIGN: middle" alt="" src="../cheditor4/icons/em/2.gif" border=0>
요렇게 뿌려집니다. 아예 태그로 .... 한 두어달 쉬었더니만 진짜로... 갑자기 멍청해 졌어요 ..
DHTML 이 문제일수도 있어서 사용하지 않으면 정상 출력이 됩니다만... 게시판의 성격 상 꼭, DHTML 을 사용해야 하니 ...
댓글 전체
writeContents 라고 함은 게시판의 입력란과 비슷한 개념일듯 싶은데
스타일시트를 수정하지 않는한은 글쎄요..
스타일시트를 수정하지 않는한은 글쎄요..
bbs/view.php $view[content]; 출력부분입니다.
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);
if (strstr($sfl, "content"))
$view[content] = search_font($stx, $view[content]);
$view[content] = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $view[content]);
//$view[rich_content] = preg_replace("/{img\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);
$view[rich_content] = preg_replace("/{이미지\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);
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);
if (strstr($sfl, "content"))
$view[content] = search_font($stx, $view[content]);
$view[content] = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $view[content]);
//$view[rich_content] = preg_replace("/{img\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);
$view[rich_content] = preg_replace("/{이미지\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);