对话系统第一次修改

This commit is contained in:
2025-10-23 21:30:31 +08:00
parent 9fafd91ea5
commit 80b26ade3b
29 changed files with 1361 additions and 1028 deletions
+5
View File
@@ -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);
}
}
}