How to decode html to plain text

May I know how to decode html to plain text in most easi way?

E.g. for

aaa +bbb

we expect to decode it to:

“aaa +bbb”

Currently we used pxReplaceAllViaRegex to do several replacement, but still some special case can not be covered.

One more issue is the pxReplaceAllViaRegex has a length limitation. If the match part longer than (maybe) 2293 byte, it will not work, am I correct?

Thanks.

@MaxonL16591286 Hi are you using this in UI ? if yes then you can use a control RichTextDisplay that would help. If not please check the below link if that helps.

@MaxonL16591286 You can make use of jsoup to convert html to plain text

@BhanuPrakash_G

Fine, thanks!