Example #1
0
 public BbcodeEventArgs(Core core, string contents, BbcodeTag tag, BbcodeOptions options, User postOwner, bool inList, int quoteDepth, int shareDepth, BbcodeParseMode mode, ref string prefixText, ref string suffixText, ref bool handled, ref bool abortParse)
 {
     this.core = core;
     this.tag = tag;
     this.options = options;
     this.attributes = tag.GetAttributes();
     this.contents = contents;
     this.prefixText = prefixText;
     this.suffixText = suffixText;
     this.inList = inList;
     this.quoteDepth = quoteDepth;
     this.shareDepth = shareDepth;
     this.mode = mode;
     this.handled = handled;
     this.abortParse = abortParse;
     this.owner = postOwner;
 }
Example #2
0
 private static bool ValidList(BbcodeTag tag)
 {
     BbcodeAttributes attr = new BbcodeAttributes(tag.Attributes);
     if (!attr.HasAttributes()) return true;
     if (Regex.IsMatch(attr.GetAttribute("default"), "^(circle|square)|([aAiI1]{1})$"))
         return true;
     return false;
 }