function to think of their own blog or empty on the dot content
by the way how to add other people's articles to their own blog
The
function is used to remove HTML tags from text, and you can control which tags are deleted.
to control the list of deleted labels, you can do this by adding/removing tags to the TagList constant. For example, to retain all <B> labels, remove B from the TagList. The current list contains all the HTML tags and LAYER tags in MSDN. Each label should be used ";" Enclosed.
start and end tags will be deleted, such as "<A...>" and </A...>
if the label is in both the TagList and Blocktaglist constants, all content between the start and end tags will be deleted
tags that do not have an end tag are not treated as HTML tags and their contents are not deleted
Block Label If there is no end tag, everything from the beginning of the label to the end of the text will be deleted
if the character followed by "<!--" is not a space, the annotation label will not be deleted
Use this function is simple:
Strplaintext = removehtml (strtextwithhtml)
The
function reads as follows:
Function removehtml (strText)
Dim taglist
taglist = ";! --;! DOCTYPE; A Acronym; address; APPLET; area; B BASE; Basefont; "&_
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.