Recently I started to use c # as a forum. I found it online. Although there are conversion codes for ubb (c #), they are not comprehensive, I want to share it with you.
If you have any questions, please contact me at my personal Forum [url = http://www.hushiyu.com] www.hushiyu.com [/url.
Using System;
Using System. Text;
Using System. Text. RegularExpressions;
Namespace myluntan
{
/// <Summary>
/// Summary of UBB.
/// </Summary>
Public class UBB
{
Public UBB ()
{
//
// TODO: add the constructor logic here
//
}
# Region Public static method
/// <Summary>
/// UBB code processing function
/// </Summary>
/// <Param name = "sDetail"> input string </param>
/// <Returns> output string </returns>
Public string UBBToHTML (string sDetail)
{
Regex r;
Match m;
# Region processing space
SDetail = sDetail. Replace ("", "& nbsp ;");
# Endregion
# Region processing single quotes
SDetail = sDetail. Replace ("'","'");