<feat> + text工具结果在浏览器打开

This commit is contained in:
2022-12-09 11:57:12 +08:00
parent c1538af689
commit ea75f46af3
3 changed files with 8 additions and 9 deletions

View File

@ -1,3 +1,4 @@
using System.Diagnostics;
using System.Security.Cryptography;
using System.Text;
using NSExt.Extensions;
@ -97,6 +98,9 @@ html-encode: {o.HtmlEncode}
html-decode: {o.HtmlDecode}
""";
Console.WriteLine(outputTemp);
var file = Path.Combine(Path.GetTempPath(), $"{System.Guid.NewGuid()}.html");
File.WriteAllText(file, outputTemp.Text2Html());
Process.Start("explorer", file);
}
protected override async Task Core()