API Reference
Class
TextExtensions
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:
StringConverts plain text into HTML-safe content and wraps discovered links in anchor tags.
Parameters
- text System.String
- Input text that may contain URLs.
- openInNewTab System.Boolean = true
- When true, adds target="_blank" and rel attributes.
- cssClass System.String = "text-reset"
- Optional CSS class added to generated anchors. Defaults to text-reset.
Returns
HTML string with encoded content and clickable links.