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!"
Previous | Next |
---|---|
How kIsWeb works in Flutter |
REST Client extension for VSCode |
Last update:
18 septembre 2023
Created: 18 septembre 2023
Created: 18 septembre 2023