Skip to content

Latest commit

History

History
28 lines (18 loc) 路 859 Bytes

File metadata and controls

28 lines (18 loc) 路 859 Bytes

The HtmlUnescape package

Ever worked with a REST API that returns a bunch of escaped Strings?

Use the HtmlUnescape package to convert them before you show them in the UI. 馃憞

Link: HTMLUnescape package

import 'package:html_unescape/html_unescape.dart';

const unescaped = 'She said: "Look at that kitten!"';
final unescape = HtmlUnescape();
final escaped = unescape.convert(unescaped);
print(escaped); // She said: "Look at that kitten!"

Found this useful? Show some love and share the original tweet 馃檹


Previous Next
How kIsWeb works in Flutter REST Client extension for VSCode