Project Description
BBCode for ASP.NET, C#, VB.NET. Convert BBCode to Html.

Note: There is Another Better Option

After I have written this project, then later I found another better well developed tool:


If you are going to use a ASP.NET BBCode Engine in production, you are strongly recommended to use Codekicker.BBCode.

Why Use Codekicker.BBCode?

Codekicker.BBCode is.....

  • Safe - it does not let through unsafe HTML like <script> under any circumstances
  • Good Performance - it is meant to be used in production
  • Easy to use - Just call BBCode.ToHtml("[url=]codekicker[url]")
  • Customizable - Customizing the translation of every tag is easy and flexible
  • Error messages - the messages are available in english and german. Language contributions are welcome.


Alternative Pre-Defined BBCode Parser:


This project is not deleted or abandoned as it may serves for research and study purposes. 

Using BBCode.NET (this project)

BBCode.Net converts this:


into this:

<a href="">Codeplex</a>

Coding Example of Using This Project:

string BBCodeSyntax = "[url={webaddress}]{display}[/url]"; 
string HtmlSyntax = "<a href=\"{webaddress}\">{display}</a>"; 
string Fields = "{webaddress};{display}"; 
string input = "Project Hosting for Open Source Software - [url=]Codeplex[/url]";  

string output = BBCode.ConvertToHtml(input, BBCodeSyntax, HtmlSyntax, Fields);


Prevention of XSS Attack

BBCode.Net is currently not able to block XSS Attack (Cross-site Scripting). You have to implement your own AntiXSS engine. There is a nice AntiXSS engine provided by Microsoft (Read more: Microsoft Web Protection Library)

Read more about XSS Attack (Cross-site Scripting)

Last edited Feb 26 at 2:06 PM by adriancs, version 23