Method ToHtml
- Namespace
- GuildWars2.Markup
- Assembly
- GW2SDK.dll
ToHtml(string)
Converts a markup string to a string with HTML formatting using the DefaultColorMap.
public static string ToHtml(string markup)
Parameters
markup
stringThe markup string to convert.
Returns
- string
The HTML string.
ToHtml(string, IReadOnlyDictionary<string, string>)
Converts a markup string to a string with HTML formatting using a custom color map.
public static string ToHtml(string markup, IReadOnlyDictionary<string, string> colorMap)
Parameters
markup
stringThe markup string to convert.
colorMap
IReadOnlyDictionary<string, string>A dictionary mapping color names to their corresponding HTML color codes.
Returns
- string
The HTML string.