htmlToURI function

Uri htmlToURI(
  1. String code
)

Implementation

Uri htmlToURI(String code) {
  return Uri.dataFromString(code,
      mimeType: 'text/html', encoding: Encoding.getByName('utf-8'));
}