First, thanks for the help on the previous issue. I've gotten the following api to work...sort of
%3Ch3%3E11.%20Elevator%2C%20Upper%20Level%3C/h3%3EA%20ring-shaped%20gantry%20is%20bolted%20to%20the%20wall%20of%20the%20elevator%20shaft%2C%2050%20feet%20above%20the%20floor%20of%20the%20lower%20level%20%28area%2024%29.%20When%20the%20elevator%20stops%20here%2C%20the%20platform%20is%20level%20with%20the%20gantry.%20The%20circular%20space%20that%20the%20gantry%20surrounds%20is%20just%20wide%20enough%20for%20the%20platform%20to%20pass%20through%20it.%3Cbr%3E%3Cbr%3ENo%20guards%20are%20stationed%20here.%20Characters%20can%20hear%20the%20rattling%20of%20chains%20all%20around%20them.
Is there a way to get it to keep the spaces and carriage returns?
on('ready',() => { on('chat:message',(msg) => { if('api'===msg.type && /^!mapinfo/i.test(msg.content) && playerIsGM(msg.playerid)){ _.chain(msg.selected) .map((o)=>getObj('graphic',o._id)) .reject(_.isUndefined) .each((t)=>{ sendChat("Map Info", `/w gm &{template:desc} {{desc=${t.get('gmnotes')}}}` ); }); } }); });However, as you can see I'm reading the gmnotes from the selected token. These are tokens I have on the GM layer that contain information about the encounters. When I print them to chat however, everything is being converted to html characters, as in the output looks like this:
%3Ch3%3E11.%20Elevator%2C%20Upper%20Level%3C/h3%3EA%20ring-shaped%20gantry%20is%20bolted%20to%20the%20wall%20of%20the%20elevator%20shaft%2C%2050%20feet%20above%20the%20floor%20of%20the%20lower%20level%20%28area%2024%29.%20When%20the%20elevator%20stops%20here%2C%20the%20platform%20is%20level%20with%20the%20gantry.%20The%20circular%20space%20that%20the%20gantry%20surrounds%20is%20just%20wide%20enough%20for%20the%20platform%20to%20pass%20through%20it.%3Cbr%3E%3Cbr%3ENo%20guards%20are%20stationed%20here.%20Characters%20can%20hear%20the%20rattling%20of%20chains%20all%20around%20them.
Is there a way to get it to keep the spaces and carriage returns?