国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > HTML > 正文

實現清除內容中的HTML標簽的方法

2024-08-26 00:15:17
字體:
來源:轉載
供稿:網友

Option Explicit

Function stripHTML(strtext)
dim arysplit,i,j, strOutput
arysplit=split(strtext,"
??if len(arysplit(0))>0 then j=1 else j=0

??for i=j to ubound(arysplit)
? ???if instr(arysplit(i),">") then
? ?? ? arysplit(i)=mid(arysplit(i),instr(arysplit(i),">")+1)
? ???else
? ?? ? arysplit(i)=" ? ???end if
??next

??strOutput = join(arysplit, "")
??strOutput = mid(strOutput, 2-j)
??strOutput = replace(strOutput,">",">")
??strOutput = replace(strOutput,"
??stripHTML = strOutput
End Function


%>
?


??Enter an HTML String:

??
??


??

?


0 then %>
? ?

?

?



? ? View of string with no HTML stripping:

? ?

<br>? ?<br>? ?


? ? View of string with HTML stripping:

? ?

?

? ? ? ? 

?

以上就是關于實現清除內容中的HTML標簽的方法,感謝大家的閱讀,更多內容請關注錯新技術頻道網站。

?

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 南溪县| 奉贤区| 上饶县| 建德市| 昌都县| 麻阳| 克山县| 三穗县| 康乐县| 怀柔区| 恩平市| 夏邑县| 舒城县| 濮阳市| 台前县| 金湖县| 施甸县| 晴隆县| 治县。| 宁蒗| 浙江省| 阿勒泰市| 绥宁县| 壤塘县| 青龙| 海门市| 石门县| 长乐市| 芜湖市| 桐柏县| 东城区| 昌都县| 大余县| 曲阳县| 岚皋县| 灵寿县| 祁阳县| 北宁市| 富民县| 康乐县| 宁津县|