Discussion:
[dart-misc] unescape html symbols
Gonzalo Chumillas
2016-06-23 18:58:20 UTC
Permalink
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.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Gonzalo Chumillas
2016-06-23 19:12:41 UTC
Permalink
I found a library that can achieve this:
https://github.com/filiph/html_unescape

Although I think that it should be part of the Dart API.

El jueves, 23 de junio de 2016, 20:58:21 (UTC+2), Gonzalo Chumillas
Post by Gonzalo Chumillas
// 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.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...