diff --git a/src/dotnet-retest/TrxCommand.cs b/src/dotnet-retest/TrxCommand.cs index d1bdaa7..cc74d83 100644 --- a/src/dotnet-retest/TrxCommand.cs +++ b/src/dotnet-retest/TrxCommand.cs @@ -111,7 +111,7 @@ public override int Execute(CommandContext context, TrxSettings settings) // Process from newest files to oldest so that newest result we find (by test id) is the one we keep foreach (var trx in Directory.EnumerateFiles(path, "*.trx", search).OrderByDescending(File.GetLastWriteTime)) { - ctx.Status($"Discovering test results in {Path.GetFileName(trx)}..."); + ctx.Status($"Discovering test results in {Path.GetFileName(trx).EscapeMarkup()}..."); using var file = File.OpenRead(trx); // Clears namespaces var doc = HtmlDocument.Load(file, new HtmlReaderSettings { CaseFolding = Sgml.CaseFolding.None });