Generates armory embeds markup from a chat code.
Forked from madou/armory-embeds-chat-code.
npm install vildravn-gw2-embeds-chat-code
import parseChatCode from 'vildravn-gw2-embeds-chat-code';
parseChatCode('[&AgGqLgEA]');
// <div data-armory-embed="items" data-armory-ids="77482"></div>
property | type | description |
---|---|---|
tag | string |
Custom tag for the embed, defaults to div . |
attributes | Object |
Key/value object of extra attributes to add to the markup. |