Fix ID card names can use markup in PDAs (#44426)

remove markup
This commit is contained in:
Jessica M 2026-09-25 12:08:00 +00:00 • committed by GitHub
parent aa8d1463d6
commit 696eda3c8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,7 @@ namespace Content.Client.PDA
{
_pdaOwner = state.PdaOwnerInfo.ActualOwnerName;
PdaOwnerLabel.SetMarkup(Loc.GetString("comp-pda-ui-owner",
("actualOwnerName", _pdaOwner)));
("actualOwnerName", FormattedMessage.RemoveMarkupPermissive(_pdaOwner))));
PdaOwnerLabel.Visible = true;
}
else
@ -156,9 +156,10 @@ namespace Content.Client.PDA
{
_owner = state.PdaOwnerInfo.IdOwner ?? Loc.GetString("comp-pda-ui-unknown");
_jobTitle = state.PdaOwnerInfo.JobTitle ?? Loc.GetString("comp-pda-ui-unassigned");
IdInfoLabel.SetMarkup(Loc.GetString("comp-pda-ui",
("owner", _owner),
("jobTitle", _jobTitle)));
("owner", FormattedMessage.RemoveMarkupPermissive(_owner)),
("jobTitle", FormattedMessage.RemoveMarkupPermissive(_jobTitle))));
}
else
{