Subject = subject_filter(Trim(Request.Form("Subject")))
Contents = contents_filter(Trim(Request.Form("Contents")))
Dim rex
Function contents_filter(content)
content = replace(content,"<TABLE>","<table>")
content = replace(content,"<TABLE ","<table ")
content = replace(content,"<TBODY>","<tbody>")
content = replace(content,"<TR>","<tr>")
content = replace(content,"<TD>","<td>")
content = replace(content,"</TD>","</td>")
content = replace(content,"</TR>","</tr>")
content = replace(content,"</TBODY>","</tbody>")
content = replace(content,"</TABLE>","</table>")
content = replace(content,"<XMP>","<xmp>")
content = replace(content,"</XMP>","</xmp>")
content = replace(content,chr(9)," ")
content = replace(content,"'","''")
contents_filter = content
End Function
Function subject_filter(Subject)
set rex = new Regexp
rex.Pattern= "<[^>]+>"
rex.Global=true
Subject =rex.Replace(Subject,"")
Subject = replace(Subject,"'","''")
subject_filter = Subject
End function
현재 안쓰고 있는데;;;
'WEB TIP > ASP' 카테고리의 다른 글
Session값 지우기 (0) | 2006.04.05 |
---|---|
하위폴더 불러오기 (0) | 2006.04.05 |
Request값 확인하기 (0) | 2006.04.05 |
변수값으로 include (0) | 2006.04.05 |
데이터 콤마로 분리 (0) | 2006.04.05 |