Literal quote in link tag

I’m trying to make a link tag in TMP_Text component have a literal quote ( " ) in it’s ID for a tooltip system.
So for example: <link=“James said “Hello””>test
I have tried escaping the quotes using the usual ways: " /" `" “”" “”“” //" \u0022 etc. with ParseEscapeCharacters on or off, but no luck with those.

It seems no matter what I do, the TMP_LinkInfo.GetLinkID method will give the ID cut off at the point of the first escaped quote. So the ID returned in this case would be "James said ".
Furthermore it seems that other characters cannot be escaped either like “>” which causes the characters after that to become visible.

Is it not possible to escape characters inside link IDs? Or maybe I’m just missing something…

The link ID is support to be just that a simple unique identifier so that whatever code is supposed to process / handle these links knows what this specific link is.

I have made a few posts related to this in the past. My suggestion is to use a dictionary where the linkID is the key and the link itself the content which can then be anything.

See the following post related to the above.

I already use a dictionary with the IDs pointing to a specific tooltip object, but the intent was to give it a custom string generated at runtime for customization in a simple way. E.g. <link=“my_tooltip_id:“custom message””>.

But thanks for the reply and the link. Didn’t know about the 120 character limit so the aproach would have failed with long strings anyways, so we will figure out some other solution.

FYI: I do plan on introducing an “href” attribute to the link tag along with an tag that will also take an “href” attribute for this type of use case.

Oh that’s cool! Do you think it would support escaping characters (without parsing them yourself)? Although, I suppose anyone can just use their own way of escaping and parse that themself (%22, ", " or whatever).