Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Text fields

Query:  Is there an easy way to replace all of the special formatting characters with normal text?  Example:  If I .get the GMNotes on a token, and want to move that information into a Handout, how do I replace of all the %20 and %3Cbr%3E and other formatting codes with normal characters? I could do a lot of .replace commands, but if I miss a character then I'll have odd formatting.  It just seems like there should be an easy way to do it. Background info:  I plan to use the GMNotes field on individual tokens to store loot on an individual basis.  Then when combat is over, select the fallen foes, and output that information to a Handout. Thanks!
1454186268
Lithl
Pro
Sheet Author
API Scripter
Try decodeURIComponent(text). That ought to handle everything.
That's what I needed, ty! I figured there had to be a function for it already.