About the name field in collection and nft entities
Closed this issue · 0 comments
azhu003 commented
When using encodeURIComponent
encoding, spaces will be encoded as %20
. Do I need to deliberately replace %20
with +
? Or should I not use the encodeURIComponent
function to handle the encoding of html_encode_json
, or is there another function to handle it?
Example
{
"id": "0aff68d3a66b-DLEP",
"name": "Dot Leap Early Promoters",
"issuer": "CpjsLDC1JFyrhm3ftC9Gs4QoyrkHKhZKtK7YqGTRFtTafgp",
"max": 100,
"symbol": "DLEP",
"version": "RMRK1.0.0",
"metadata": "ipfs://ipfs/QmVgs8P4awhZpFXhkkgnCwBp4AdKRj3F9K58mCZ6fxvn3j"
}
Becomes:
rmrk::MINT::1.0.0::%7B%22id%22%3A%220aff68d3a66b-DLEP%22%2C%22name%22%3A%22Dot%20Leap%20Early%20Promoters%22%2C%22issuer%22%3A%22CpjsLDC1JFyrhm3ftC9Gs4QoyrkHKhZKtK7YqGTRFtTafgp%22%2C%22max%22%3A100%2C%22symbol%22%3A%22DLEP%22%2C%22version%22%3A%22RMRK1.0.0%22%2C%22metadata%22%3A%22ipfs%3A%2F%2Fipfs%2FQmVgs8P4awhZpFXhkkgnCwBp4AdKRj3F9K58mCZ6fxvn3j%22%7D