HtmlForgeX

API Reference

Class

TextExtensions

Namespace HtmlForgeX.Extensions
Assembly HtmlForgeX
Modifiers static

Text-related helper extensions for HtmlForgeX consumers.

Inheritance

  • Object
  • TextExtensions

Methods

public static String Linkify(String text, Boolean openInNewTab = true, String cssClass = "text-reset") #
Returns: String

Converts plain text into HTML-safe content and wraps discovered links in anchor tags.

Parameters

text System.String requiredposition: 0
Input text that may contain URLs.
openInNewTab System.Boolean = true optionalposition: 1
When true, adds target="_blank" and rel attributes.
cssClass System.String = "text-reset" optionalposition: 2
Optional CSS class added to generated anchors. Defaults to text-reset.

Returns

HTML string with encoded content and clickable links.