Skip to main content

RichTextUtils

Utility methods to work with Rich text

Functions

sanitizeRichText

RichTextUtils.sanitizeRichText(textstring) → string

Sanitizes the rich text string

removeRichTextEncoding

RichTextUtils.removeRichTextEncoding(textstring) → string

Unescapes any rich text.

Show raw api
{
    "functions": [
        {
            "name": "sanitizeRichText",
            "desc": "Sanitizes the rich text string",
            "params": [
                {
                    "name": "text",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 14,
                "path": "src/richtext/src/Shared/RichTextUtils.lua"
            }
        },
        {
            "name": "removeRichTextEncoding",
            "desc": "Unescapes any rich text.",
            "params": [
                {
                    "name": "text",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 29,
                "path": "src/richtext/src/Shared/RichTextUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "RichTextUtils",
    "desc": "Utility methods to work with Rich text",
    "source": {
        "line": 6,
        "path": "src/richtext/src/Shared/RichTextUtils.lua"
    }
}