最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ubb代码转化html代码
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
public static string UbbDecode(string str)
{
str = HtmlEncode(str);
str = Regex.Replace(str, @"[url](?.+?)[/url]", "${url}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
str = Regex.Replace(str, @"[url=(?.+?)](?.+?)[/url]", "${name}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
str = Regex.Replace(str, @"[email](?.+?)[/email]", "${email}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
str = Regex.Replace(str, @"[email=(?.+?)](?.+?)[/email]", "${name}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
str = Regex.Replace(str, @"[flash](?.+?)[/flash]", "", RegexOptions.Compiled | RegexOptions.IgnoreCase);
str = Regex.Replace(str, @"[dir=(?[0-9]+?),(?[0-9]+?)](?.+?)[/dir]", "
{
str = HtmlEncode(str);
str = Regex.Replace(str, @"[url](?
str = Regex.Replace(str, @"[url=(?
str = Regex.Replace(str, @"[email](?
str = Regex.Replace(str, @"[email=(?
str = Regex.Replace(str, @"[flash](?
str = Regex.Replace(str, @"[dir=(?
相关文章
- python实现html代码转义转换的例子 12-18
- ubb转换成html 08-05
- HTML与UBB代码互相转换 07-19
- html转换成UBB代码 05-24
- ubb 转换成html代码 04-29
- ubb转换成html 代码 03-15