已經有很多生成html的新聞系統
由於代碼比較短
以下為引用的內容
<%
dim hughchiu_rtcode
Function get_exe_code(
dim execode
dim tmp_str
Dim re
dim ms
execode = ""
set fso=CreateObject("Scripting
set f=fso
content=f
f
set f=nothing
set fso=nothing
set re = new regexp
re
re
re
content = re
re
re
do
set ms = re
if ms
set m = ms(
tmp_str = get_exe_code(m
content = re
else
exit do
end if
loop
set m = nothing
set ms = nothing
re
aspEnd=
aspStart=inStr(aspEnd
set re
re
re
re
do while aspStart>aspEnd+
execode = execode&vbcrlf&" hughchiu_rtcode = hughchiu_rtcode&"""&replace( replace(Mid(content
aspEnd=inStr(aspStart
tmp_str = Mid(content
do
set ms = re
if ms
set m = ms(
tmp_str = re
else
exit do
end if
loop
set m = nothing
set ms = nothing
execode = execode& re
aspStart=inStr(aspEnd
loop
set re
set re=nothing
execode = execode&vbcrlf&" hughchiu_rtcode = hughchiu_rtcode&"""&replace( replace(Mid(content
get_exe_code = "<%"&execode&"%>"
End Function
function asp
dim code
code = replace( replace( replace( get_exe_code(
execute(code)
asp
end function
%>
使用范例
以下為引用的內容
set fso=CreateObject("Scripting
set f=fso
f
f
set f = nothing
set fso = nothing
From:http://tw.wingwit.com/Article/program/net/201311/14236.html