View Single Post
07/25/19, 09:50 AM   #6
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
tl;dr Doesn't work. And Zeni please include links in SetAllowMarkupType().


<Does some experimentation...> So it really looks like all EditBoxes do indeed markup by default, as Zeni's example manually escapes their markup. Thanks for finding that!

EscapeMarkup() apparently just adds | to an |, but it doesn't even do this properly for all markup. For example:
Code:
|H1:achievement:1820:1:1563935869|h|h
Will not be escaped.

Sadly, this means that copying text is ruined when escaped - as we have no access to the clipboard to unescape it again. So I can't use this.

I still can't find a definition to EditBox where I could stop it from displaying links not-as-plain-text.

It also looks like SetAllowMarkupType() of EditBox should have this feature, but doesn't. It only affects text styling, but not links. Could Zeni add links to it?

Last edited by Phuein : 07/25/19 at 09:54 AM.
  Reply With Quote