I have now integrated CIP25 support into xchain.io and returned the JSON description field to a text only field on XChain, and will no longer support displaying HTML in the description field after 30 days (giving services a bit of time to migrate to CIP25 with minimal interruption)
Loading user-supplied HTML content is generally an unsafe practice and is frowned upon, as the HTML/javascript code could do nefarious things. (For example, Someone could write up some code to dump a private key from a wallet and make an external call to pass the private key to a server, redirect you to some other site, install a CPU miner on your machine, or worse)
In making these changes to how the description field is treated on XChain, it became clear to me that there is a desire in the community to be able to push the limits of what is possible with tokens, and that we should provide some way to safely load/display user-provided HTML content.
Here are a few examples of tokens which are doing unique things by injecting HTML into an iframe
Rare Pepe Puzzle
https://xchain.io/asset/FAKEPUZZLE
Interactive / Augmented Reality Artwork
https://xchain.io/asset/PEPESTREAM
https://xchain.io/asset/NEWPEPEDESU
Artwork that changes based on the time of day
https://xchain.io/asset/FOURPEPAS
I propose we update CIP25 to add a generic html field where users can pass a chunk of HTML code to be optionally displayed.
I plan to update XChain to support this new “html” field and will allow loading of user-supplied HTML content after displaying a warning message and clicking a ‘Load’ button.