mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
11 lines
349 B
C#
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 />");
|
|
}
|
|
}
|