VB Remove carriage return and tab in html, convert part of HTML uppercase tag to lowercase

Source: Internet
Author: User

'//remove all kinds of carriage return whitespace

Public Function replaceenter (bStr as String)

BSTR = Replace (bstr, "" , " ")

BSTR = Replace (bstr, vbTab, "")

BSTR = Replace (bstr, vbCrLf, "")

BSTR = Replace (bstr, chr + chr, "")

BSTR = Replace (bstr, Chr, "")

BSTR = Replace (bstr, Chr), "")

Replaceenter = BStr

End Function

'//page label changed to lowercase

Public Function Htmllabletosmall (strhtml as String)

strhtml = Replace (strhtml, "<a", "<a")

strhtml = Replace (strhtml, "</a", "</a")

strhtml = Replace (strhtml, "<span", "<span")

strhtml = Replace (strhtml, "</span", "</span")

strhtml = Replace (strhtml, "<div", "<div")

strhtml = Replace (strhtml, "</div", "</div")

strhtml = Replace (strhtml, "<ul", "<ul")

strhtml = Replace (strhtml, "</ul", "</ul")

strhtml = Replace (strhtml, "<li", "<li")

strhtml = Replace (strhtml, "</li", "</li")

strhtml = Replace (strhtml, "<img", "

strhtml = Replace (strhtml, "</img", "</img")

strhtml = Replace (strhtml, "<p", "<p")

strhtml = Replace (strhtml, "</p", "</p")

strhtml = Replace (strhtml, "<strong", "<strong")

strhtml = Replace (strhtml, "</strong", "</strong")

strhtml = Replace (strhtml, "<em", "<em")

strhtml = Replace (strhtml, "</em", "</em")

strhtml = Replace (strhtml, "<dl", "<dl")

strhtml = Replace (strhtml, "</dl", "</dl")

strhtml = Replace (strhtml, "<dd", "<dd")

strhtml = Replace (strhtml, "</dd", "</dd")

strhtml = Replace (strhtml, "<dt", "<dt")

strhtml = Replace (strhtml, "</dt", "</dt")

strhtml = Replace (strhtml, "<b", "<b")

strhtml = Replace (strhtml, "</b", "</b")

Htmllabletosmall = strHTML

End Function

VB Remove carriage return and tab in html, convert part of HTML uppercase label to lowercase

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.