|
|
@ -16,9 +16,11 @@ namespace FLocal.Common.BBCodes { |
|
|
|
} else if(this.Name.ToLower() == "code") { |
|
|
|
} else if(this.Name.ToLower() == "code") { |
|
|
|
return "[code]" + this.InnerBBCode + "[/code]"; |
|
|
|
return "[code]" + this.InnerBBCode + "[/code]"; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
string name = this.Name; |
|
|
|
|
|
|
|
if(name.ToLower() == "uploadimage") name = "uploadLink"; |
|
|
|
var sb = new StringBuilder(); |
|
|
|
var sb = new StringBuilder(); |
|
|
|
sb.Append("["); |
|
|
|
sb.Append("["); |
|
|
|
sb.Append(this.Name); |
|
|
|
sb.Append(name); |
|
|
|
if(this.Default != null && this.Default != "") { |
|
|
|
if(this.Default != null && this.Default != "") { |
|
|
|
sb.Append("='"); |
|
|
|
sb.Append("='"); |
|
|
|
sb.Append(this.Default.Replace("'", "''")); |
|
|
|
sb.Append(this.Default.Replace("'", "''")); |
|
|
@ -36,7 +38,7 @@ namespace FLocal.Common.BBCodes { |
|
|
|
if(this.RequireClosingTag) { |
|
|
|
if(this.RequireClosingTag) { |
|
|
|
sb.Append(this.GetInnerHTML(formatter)); |
|
|
|
sb.Append(this.GetInnerHTML(formatter)); |
|
|
|
sb.Append("[/"); |
|
|
|
sb.Append("[/"); |
|
|
|
sb.Append(this.Name); |
|
|
|
sb.Append(name); |
|
|
|
sb.Append("]"); |
|
|
|
sb.Append("]"); |
|
|
|
} |
|
|
|
} |
|
|
|
return sb.ToString(); |
|
|
|
return sb.ToString(); |
|
|
|