TextFragment
Jump to navigation
Jump to search
TextFragment
A fragment of pre-sanitized text (optionally styled) built via createText() or createHyperlink(), ready to append to a HtmlBuilder or combine with concatenateText(). SECURITY WARNING: Never allow users to input raw HTML, as it could open up serious Cross-Site Scripting (XSS) vulnerabilities. Always use the safe factory methods or constructors that properly encode user input. Only trusted, pre-validated HTML should be passed to the internal constructor.