LinksTraffic

Php - Encodeur HTML

english directory french directory
Recherche: Recherche avancée

Accueil Webmaster | Tutoriaux | Web Scripts

Php - Encodeur HTML

Php par catégorie
php code snippets Accueil Php data SEO image 3d Graphisme networking Réseau
user management Les utilisateurs file i/o Fichier I/Ofile i/o XML

Encoder de l'Html en texte

Faites un copier coller du code ci-dessous et lancez le dans votre navigateur (2 fichiers: un formulaire en html et un autre fichier en php).
Si vous souhaitez voir le résultat en démo (selon nous une bonne méthode d'apprentissage) cliquez ici (nouvelle fenêtre).

Let's first start building an online form in order to input the html text we wish to encode:

Now comes the function to retrieve the content of the form and encode it (encodehtml.php):

Have a look to the source code to see how the string is coded.

If you plan on decoding the string then simply use the html_entity_decode() function (www.php.net/html_entity_decode)

Commentaires

Aucun commentaire, poster un commentaire

Coin du Webmaster

Vous disposez d'un site à forte audience?

Obtenez votre Kit Graphique pour vos sites!

Engagez des Freelance Pro.

1and1 Internet

Catégories

Copyright 2004-2008 @ LinksTraffic RHM Solution ::: Partenaires | Mention | Contactez nous