对话系统第一次修改
This commit is contained in:
@@ -282,5 +282,10 @@ namespace AibisDream.Utility
|
||||
.Where(t => t.GetCustomAttributes(typeof(TAttribute), false).Length > 0)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public static string RemoveRichTextTags(this string str)
|
||||
{
|
||||
return Regex.Replace(str.Replace("<br>", "\n"), "[<|{].*?[>|}]", string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user