PHP
Chilkat2 PHP
StringBuilder EntityDecode
Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.Chilkat PHP Downloads
<?php
use Chilkat2\StringBuilder;
// Decode the following HTML entities, replacing each with the character represented.
$s = 'é é é Latin small letter e with acute';
$sb = new StringBuilder();
$sb->Append($s);
$sb->EntityDecode();
// Output: é é é Latin small letter e with acute
echo $sb->GetAsString(), "\n";