label.Id = bounty.Id;
label.AssociatedStationId = stationId;
var msg = new FormattedMessage();
- msg.AddText(Loc.GetString("bounty-manifest-header", ("id", bounty.Id)));
+ msg.AddMarkupOrThrow(Loc.GetString("bounty-manifest-header", ("id", bounty.Id)));
msg.PushNewline();
- msg.AddText(Loc.GetString("bounty-manifest-list-start"));
+ msg.AddMarkupOrThrow(Loc.GetString("bounty-manifest-list-start"));
msg.PushNewline();
foreach (var entry in prototype.Entries)
{
printed.Task = item;
var msg = new FormattedMessage();
- msg.AddText(Loc.GetString("nano-task-printed-description", ("description", item.Description)));
+ msg.AddMarkupOrThrow(Loc.GetString("nano-task-printed-description", ("description", FormattedMessage.EscapeText(item.Description))));
msg.PushNewline();
- msg.AddText(Loc.GetString("nano-task-printed-requester", ("requester", item.TaskIsFor)));
+ msg.AddMarkupOrThrow(Loc.GetString("nano-task-printed-requester", ("requester", FormattedMessage.EscapeText(item.TaskIsFor))));
msg.PushNewline();
- msg.AddText(item.Priority switch {
+ msg.AddMarkupOrThrow(item.Priority switch {
NanoTaskPriority.High => Loc.GetString("nano-task-printed-high-priority"),
NanoTaskPriority.Medium => Loc.GetString("nano-task-printed-medium-priority"),
NanoTaskPriority.Low => Loc.GetString("nano-task-printed-low-priority"),