代码如下: Function closeHTML(strContent) Dim arrTags, i, OpenPos, ClosePos, re, strMatchs, j, Match Set re = New RegExp re.IgnoreCase = True re.Global = True arrTags = Array(“p”, “div”, “span”, “table”, “ul”, “font”, “b”, “u”, “i”, “h1”, “h2”, “h3”, “h4”