Class
MarkupExtensions
ConsoleMonster.Text
String helpers for markup, named as in Spectre.Console so ported code keeps its calls.
Inheritance
- object
- MarkupExtensions
Methods
public static string EscapeMarkup(string? text) #Escapes brackets so the text is shown literally inside markup (see Markup.Escape).
Parameters
- text string?
- Plain text, or null.
Returns
string Escaped text.public static string RemoveMarkup(string? markup) #Removes markup tags and resolves escapes (see Markup.Strip).
Parameters
- markup string?
- Markup, or null.
Returns
string Plain text.