Source for file html_entities_example.php
Documentation is available at html_entities_example.php
<head><title>HTML_Entities example</title></head>
require_once "HTML/Entities.php";
// 1. Define a text (utf8) we want to convert to entities:
$t = "Le français est une langue qui nécessite des caractères spéciaux.";
// 2. Convert it to HTML entities:
// 3. Convert it back to latin1:
catch (PEAR_Exception $e) {
// 4. Write the list of entities
foreach ($table as $char=> $entity) {
echo " <tr><td>{$char}</td><td>";
Documentation generated on Mon, 11 Mar 2019 15:21:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|