Skip to content
ConsoleMonster
Class

MarkupExtensions

ConsoleMonster.Text

Namespace
ConsoleMonster.Text
Assembly
ConsoleMonster
Modifiers
static

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? required
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? required
Markup, or null.

Returns

string Plain text.