Addslashes & Stripslashes
function Addslashes(str)
dim str2
str2 = str
'따움표
str2 = replace(str2, "'", "\'") '처리: '=>\'
'쌍따움표
str2 = replace(str2, chr(34), "\"&chr(34) ) '처리: "=>\"
' 엔터값
str2 = replace(str2, chr(13)&chr(10), "<br>") '처리ㅋ
Addslashes = str2
end function
function Stripslashes(str)
dim str2
str2 = str
str2 = replace(str2, "\"&chr(34), chr(34) ) '처리: \"=>"
str2 = replace(str2, "\'", "'") '처리: \'=>'
Stripslashes = str2
end function
function nl2br(str)
dim str2
str2 = str
str2 = replace(str2, chr(13), "
") '처리: vbCrLf, chr(13), chr(10)
nl2br = str2
end function
dim str2
str2 = str
'따움표
str2 = replace(str2, "'", "\'") '처리: '=>\'
'쌍따움표
str2 = replace(str2, chr(34), "\"&chr(34) ) '처리: "=>\"
' 엔터값
str2 = replace(str2, chr(13)&chr(10), "<br>") '처리ㅋ
Addslashes = str2
end function
function Stripslashes(str)
dim str2
str2 = str
str2 = replace(str2, "\"&chr(34), chr(34) ) '처리: \"=>"
str2 = replace(str2, "\'", "'") '처리: \'=>'
Stripslashes = str2
end function
function nl2br(str)
dim str2
str2 = str
str2 = replace(str2, chr(13), "
") '처리: vbCrLf, chr(13), chr(10)
nl2br = str2
end function
스터디
번호 | 제목 | 글쓴이 | 날짜 | 조회 |
---|---|---|---|---|
2 |
ASP
Addslashes & Stripslashes
12/18 15:05
view . 3164
곤잘레스
|
곤잘레스 | 12/18 15:05 | 3164 |
1 |
ASP
cookie 전체삭제
01/07 19:07
view . 1263
곤잘레스
|
곤잘레스 | 01/07 19:07 | 1263 |