From: beck-thompson <107373427+beck-thompson@users.noreply.github.com> Date: Sun, 28 Sep 2025 18:33:11 +0000 (-0700) Subject: Fix label markup escapeing (#40600) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=974759ba79c2208a75f11e7ed9e9cbdc0774cdc7;p=space-station-14.git Fix label markup escapeing (#40600) fix --- diff --git a/Content.Shared/Labels/EntitySystems/LabelSystem.cs b/Content.Shared/Labels/EntitySystems/LabelSystem.cs index f60b690929..2b5091b7ad 100644 --- a/Content.Shared/Labels/EntitySystems/LabelSystem.cs +++ b/Content.Shared/Labels/EntitySystems/LabelSystem.cs @@ -54,7 +54,7 @@ public sealed partial class LabelSystem : EntitySystem { label ??= EnsureComp(uid); - label.CurrentLabel = text; + label.CurrentLabel = text == null ? null : FormattedMessage.EscapeText(text); _nameModifier.RefreshNameModifiers(uid); Dirty(uid, label);