Sample code for 30+ languages & platforms
React Native

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat React Native Downloads

React Native
import { StringBuilder } from '@chilkat/react-native'

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

  const sb = new StringBuilder();

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

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