htmlSafeGtLt property
String
get
htmlSafeGtLt
Replaces and < or > characters found within the string the < and >
so that text is safe for html rendering.
NOTE: When using HTML mode this must be the FIRST method called before
any styling calls so that any HTML created for styling is rendered
invalid by the entity conversion.
ie.
OK: 'my string with < and > '.safeHtml.red.onWhite;
versus
'my string with < and > '.red.onWhite.safeHtml;
(The second version will have no styling and instead show all of the html tags
inserted for styling).
Implementation
String get htmlSafeGtLt => Chalk.htmlSafeGtLt(this);