그누보드 글쓰기.. 정보
그누보드 글쓰기..본문
글쓰기에서 html태그를 넣게되면
" <-- 이 들어갈경우 \" 이런형식으로 자동으로 붙게 되던데..
이거 \ 안붙게 수정하는 방법좀 부탁드려요..
" <-- 이 들어갈경우 \" 이런형식으로 자동으로 붙게 되던데..
이거 \ 안붙게 수정하는 방법좀 부탁드려요..
댓글 전체
참고 하세요
글쓰기 할때는 따옴표를 DB에 입력 하기 위해 addslashes \ 역슬래쉬를 사용합니다.
http://www.php.net/manual/kr/function.addslashes.php
다시 페이지에 출력 할때는 역슬래쉬를 제거하기 위해 stripslashes를 사용합니다.
http://www.php.net/manual/kr/function.stripslashes.php
역슬래쉬를 사용 안하시려면 아래와 같이 변환 해서 사용하시는 방법도 있습니다.
ASCII Entities with Entity Names
Result Description Entity Name Entity Number
" quotation mark " "
' apostrophe ' (does not work in IE) '
& ampersand & &
< less-than < <
> greater-than > >
글쓰기 할때는 따옴표를 DB에 입력 하기 위해 addslashes \ 역슬래쉬를 사용합니다.
http://www.php.net/manual/kr/function.addslashes.php
다시 페이지에 출력 할때는 역슬래쉬를 제거하기 위해 stripslashes를 사용합니다.
http://www.php.net/manual/kr/function.stripslashes.php
역슬래쉬를 사용 안하시려면 아래와 같이 변환 해서 사용하시는 방법도 있습니다.
ASCII Entities with Entity Names
Result Description Entity Name Entity Number
" quotation mark " "
' apostrophe ' (does not work in IE) '
& ampersand & &
< less-than < <
> greater-than > >