티스토리 뷰
'=================================================================== ' JSON 문자 escape '------------------------------------------------------------------ ' string json_escape(string str) '=================================================================== Function json_escape(str) If NOT isset(str) then json_quot = str Exit Function End If '// 특수문자 처리 str = Replace(str, "\", "\\") str = Replace(str, "'", "\'") str = Replace(str, """", "\""") '// BR 태그 처리 str = str_replace("
", "\n", str) str = str_replace("
", "\n", str) str = str_replace("
", "\n", str) '// 라인스킵 처리 str = Replace(str, chr(13)&chr(10), "\n") str = Replace(str, chr(13), "\n") str = Replace(str, chr(10), "\n") json_escape = str End Function
'웹프로그래밍 > ASP Classic' 카테고리의 다른 글
Classic ASP URL 주소로부터 파일 생성 (0) | 2013.05.22 |
---|---|
Classic ASP 배열 커스텀 함수들 (0) | 2013.05.22 |
XML Escape/UnEscape (0) | 2013.05.22 |
Classic ASP 모바일 브라우저 체크 (2) | 2013.05.22 |
Classic ASP SHA1 암호화 (0) | 2013.05.22 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Mac
- Debug
- classic asp
- macos
- JSON
- Android
- CSS
- 워드프레스
- mssql
- iphone
- git
- javascript
- nodejs
- JQuery
- nginx
- Docker
- ASP
- Linux
- PHP
- Prototype
- sencha touch
- centos
- 한글
- Wordpress
- 안드로이드
- laravel
- IE
- IOS
- API
- iis
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
글 보관함