Recently, I used vb.net as a forum and found it online. Although I have some conversion code for ubb (vb.net), it is not comprehensive. I have added it here, share it with you.
If you have any questions, please visit my personal Forum www.hushiyu.com.
Public Class ubbs
Function ubb (vstr as string)
'Replacing HTML tags and line feed processing
Vstr = replace (vstr, ">", "> ")
Vstr = replace (vstr, "<", "<")
Vstr = Replace (vstr, CHR (32 ),"")
Vstr = Replace (vstr, CHR (9 ),"")
Vstr = Replace (vstr, CHR (34 ),""")
Vstr = Replace (vstr, CHR (39 ),"'")
Vstr = Replace (vstr, CHR (13 ),"")
Vstr = Replace (vstr, CHR (10), "<BR> ")
Vstr = Replace (vstr, "[enter]", "<BR> ")
Dim xface as integer
If xface = 1 then
'Expression Conversion. If the numeric variable xface is set to 1, conversion is allowed.
Vstr = replace (vstr, ":)", " ")
Vstr = replace (vstr, ":(", " ")
Vstr = replace (vstr, ": o", " ")
Vstr = replace (vstr, ": D", " ")
Vstr = replace (vstr, ";)", " ")
Vstr = replace (vstr, ": p", " ")
Vstr = replace (vstr, ": cool:", " ")
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.