stripHtmlComments method

  1. @useResult
String stripHtmlComments()

Removes HTML comments () from this string. Audited: 2026-06-12 11:26 EDT

Implementation

@useResult
String stripHtmlComments() => replaceAll(RegExp(r'<!--[\s\S]*?-->'), '');