Method MaskedUrl
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
MaskedUrl(string, Uri, string?, bool)
Creates a masked link. This link will display as specified text, and alternatively provided alt text.
public static string MaskedUrl(this string text, Uri url, string? altText = null, bool embedless = false)
Parameters
text
stringText to display the link as.
url
UriUrl that the link will lead to.
altText
stringAlt text to display on hover.
embedless
boolWhether to supress url embeds.
Returns
- string
Formatted url.