htmlToURI function

String htmlToURI(
  1. String code
)

Implementation

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