Extract text without markup.


I would like to get text without the markup. I’ve been looking through Text component and string methods, but I don’t seem to see anything. Is there a helper method for that, or will I have to parse it myself? Thank you :slight_smile:

Oh well I did it manually, if anyone knows of a Unity way I’ll mark it as correct answer :slight_smile:

        string cleanText(string text)
                bool loop = false;
                string ret = "";
                foreach (char x in text) {
                        if (x == '<') {
                                loop = true;
                        } else if (x == '>') {
                                loop = false;
                        } else if (loop) {
                        ret += x;
                return ret;