---
title: "asp调用内容替换html标签"
author: "fengxu"
date: "2008-11-12T15:20:00Z"
tags: ["ASP", "HTML"]
slug: "asp-html"
draft: false
lastmod: "2008-11-12T15:20:00Z"
id: 343525
url: "https://fengxu.iteye.com/blog/343525"
---

函数如下：

 

Function RemoveHTML(strText)  
 Dim RegExs  
 Set RegExs = New RegExp   
 RegExs.Pattern = "&lt;\[^&gt;]\*&gt;"  
 RegExs.Global = True   
 RemoveHTML = RegExs.Replace(strText, "")  
End Function

 

使用方法：

 

直接RemoveHTML(内容)

这样就屏蔽了所有的html标签