Files
watrbx-game-engine/Client.LegacyAssemblies/Roblox.Common/TextTransform.cs
T
2025-09-18 17:55:52 -04:00

11 lines
349 B
C#

using System.Web;
namespace Roblox.Common
{
public class TextTransforms
{
public static string transformString(string stringToTransform) => performCarriageReturnSubstitution(HttpContext.Current.Server.HtmlEncode(stringToTransform));
public static string performCarriageReturnSubstitution(string text) => text.Replace("\n", "<br />");
}
}