mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
17 lines
364 B
C#
17 lines
364 B
C#
using System.Web;
|
|
|
|
namespace Roblox.Common;
|
|
|
|
public class TextTransforms
|
|
{
|
|
public static string transformString(string stringToTransform)
|
|
{
|
|
return performCarriageReturnSubstitution(HttpContext.Current.Server.HtmlEncode(stringToTransform));
|
|
}
|
|
|
|
public static string performCarriageReturnSubstitution(string text)
|
|
{
|
|
return text.Replace("\n", "<br />");
|
|
}
|
|
}
|