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