Android icon indicating copy to clipboard operation
Android copied to clipboard

Handle HTML in the info dialog with Pkpass codes

Open theimpulson opened this issue 11 months ago • 2 comments

Summary

Some Pkpass files have HTML in the description shown in the info dialog as raw HTML. It would be nice to show a properly formatted HTML text. This probably can be done using HtmlCompat class.

theimpulson avatar Jan 19 '25 03:01 theimpulson

I tried it quickly, but the formatting keeps getting messed up.

theimpulson avatar Jan 19 '25 04:01 theimpulson

I guess we can experiment with this. It'd be important to set some limits on the allowed tags to ensure readability, but yeah.

With regards to formatting issues, my first guess would be that you would want to replace newlines with <br> or <p>, but I haven't really looked into this myself.

TheLastProject avatar Jan 23 '25 16:01 TheLastProject