stripHtmlComments method
Removes HTML comments () from this string. Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
String stripHtmlComments() => replaceAll(RegExp(r'<!--[\s\S]*?-->'), '');
Removes HTML comments () from this string. Audited: 2026-06-12 11:26 EDT
@useResult
String stripHtmlComments() => replaceAll(RegExp(r'<!--[\s\S]*?-->'), '');