My CodenameOne app needs to pass HTML code to HTML elements inside a BrowserComponent with Javascript, so characters have to be escaped more than one time, they have to be encoded in fact.
I need something like TextUtils.htmlEncode()
.
In Codename it seems to be HTMLUtils
but is deprecated, and I am not sure there is the equivalent method.
So what is the equivalent of TextUtils.htmlEncode()
in CodenameOne?