Text Mesh Pro ALL Tag closeout Tag?

It would be SUPER convenient to have a Markup tag which can clear all existing tag effects.
So that any place with shared content, where different users provide different lines, I can easily prevent “Style bleed” I.e.:

Bob says I like things bold and bold italic’d!
Suzy just wants normal text.

I would love to be able to place a or or or or simply </> Tag right before Suzy’s text.
As It stands I believe I need to search for every tag possibly used in bob’s line, and sort if closed or not, and then add

Or simply spam all of the closing tags at the end of each line. ,etc.
Anything like this exist? or a simpler workaround?

Can you provide more insight on the use case?

For instance, is this part of a chat system where a user would type some line of text where they would be unlikely to close them. You then take these lines and append them to some list where these un-closed tags become an issue?

some of our mixed-user interfaces are protected by using separate TMP instances. But We have other systems,
like a group message board. physically displaying the text in our world, one posting after the other for efficiency. where we allow them to use basic tags. but if they fail to cleanup , spills into next article.

TUESDAY Oct 8:
bob typed this text loud text.

WEDNESDAY Oct 1:
Sally doesnt want this to be bold.

If I could Clear all tag effects at the would have simplified this issue.
Just thought you might handily be able to reset all markedup stuff easily, and hoped there was already a way. a Blank Style?

Just being lazy probably. searching for all unclosed tags i guess is just (and case insensitivity added):
if (text.strpos(“”) > text.strpos(“”)) text+=“”;

But I would think it could be a handy feature to simply return the formatting to the TMP box’s original specs.

I’ll try taking a look at this over the new few days / weekend and let you know what I come up with.

Has this ever been turned into a feature?
Aka a reset all styles tag?

No but this serves as a reminder for me to revisit this once I have a chance.

1 Like

I would love this feature. Or even just a way to log warning messages about unclosed tags.

Alternately maybe does this, or could?

Has this been added? It’d be really helpful if you want to concatenate multiple rich text strings like above mentioned articles or in my case logs.
I don’t want to have to create multiple textmeshpro objects to achieve this. Currently I just slap a bunch of closing tags at the end of every individual string and it works, but is really janky.