htmlEscapeConvert method

String htmlEscapeConvert()

Converts this string into something equivalent escaping all characters with special meaning in HTML.

This is intended to sanitize text before inserting the text into an HTML document. Characters that are meaningful in HTML are converted to HTML entities (like & for &).

Implementation

String htmlEscapeConvert() => htmlEscape.convert(this);