stripHtmlComments method

  1. @useResult
String stripHtmlComments()

Removes HTML comments () from this string.

Implementation

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