Parses markup text from Guild Wars 2 tooltips to html.
Install this module with your favorite package manager, e.g. npm install gw2-tooltip-html
.
import { format } from 'gw2-tooltip-html';
format('<c=@abilitytype>Heat Threshold</c>')
// ⇒ '<span class="color-format--abilitytype">Heat Threshold</span>'
gw2-tooltip-html is licensed under the MIT License.