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

[API] Escaping reserved characters

1422091797

Edited 1422097566
Hey gents, Is it possible to escape reserved characters such as &lt; &gt; and other such items in the chatbox? The purpose is to dump a line for api use. For example: '&lt;a href="<a href="http://paizo.com/search?q=" rel="nofollow">http://paizo.com/search?q=</a>' + fireball +'&what=prd"&gt;&lt;span style="color: #202AA1; font-weight: bold;"&gt;'fireball'&lt;/span&gt;&lt;/a&gt;' Is a link my API will output and store in an ability marco. What I'm looking to do is to have the marco be a relay to !processDirect &lt;formatted content&gt; so that an API handler will receive and direct it. Now I've read somewhere that escape characters exist, but i'm a bit foggy on the specifics in respect to reserved characters such as &lt;&gt; enclosures and other things as backslash doesn't appear to work. An alternative is to have it spit out mumbo-jumbo to be re-parsed and re-interpreted to generate the link with the API which will direct it. I'm looking forward not to do that.
Hah, I just realized that /direct isn't even necessary.. disregard this, things just got a whole lot easier. :)
1422129688

Edited 1422133991
DXWarlock
Sheet Author
API Scripter
Edited: read the part of \ not working for you. Just tried it, seems to get wonky for me also on &lt; and &gt;