Method ToHtml
- Namespace
- GuildWars2.Markup
- Assembly
- GuildWars2.dll
ToHtml(string)
Converts a markup string to a string with HTML formatting using the DefaultColorMap.
public static string ToHtml(string markup)
Parameters
markupstringThe 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
markupstringThe markup string to convert.
colorMapIReadOnlyDictionary<string, string>A dictionary mapping color names to their corresponding HTML color codes.
Returns
- string
The HTML string.