unescape html symbols

45 views
Skip to first unread message

Gonzalo Chumillas

unread,
Jun 23, 2016, 2:58:21 PM6/23/16
to Dart Misc
I know a way to escape special html symbols:

// prints 'Some & text'
HtmlEscape converter = new HtmlEscape();
print(converter.convert('Some & Text'));

But how could I achieve the inverse operation? How could I "unescape" a string?
Thanks.

Gonzalo Chumillas

unread,
Jun 23, 2016, 3:12:42 PM6/23/16
to Dart Misc
I found a library that can achieve this:

Although I think that it should be part of the Dart API.
Reply all
Reply to author
Forward
0 new messages