Sample code for 30+ languages & platforms
Dart

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat Dart Downloads

Dart
import 'package:chilkat/chilkat.dart';

void main() {
  // Decode the following HTML entities, replacing each with the character represented.
  final s = 'é é é Latin small letter e with acute';

  final sb = CkStringBuilder();

  sb.append(s);
  sb.entityDecode();

  // Output: é é é Latin small letter e with acute
  print(sb.getAsString());
}