Récupération d'un code HTML sans interpretation (Javascript) [Résolu/Fermé]
Signaler
phplover
phplover
- Messages postés
- 22
- Date d'inscription
- samedi 20 avril 2013
- Statut
- Membre
- Dernière intervention
- 13 mai 2014
phplover
- Messages postés
- 22
- Date d'inscription
- samedi 20 avril 2013
- Statut
- Membre
- Dernière intervention
- 13 mai 2014
A voir également:
- Récupération d'un code HTML sans interpretation (Javascript)
- Récupération d'un code HTML sans interpretation (Javascript) ✓ - Forum - PHP
- Lier(link) les codes html, css et javascript ✓ - Forum - Webmaster
- Comment Montrer un code html sans l'executer? ✓ - Forum - HTML
- Afficher du code html sans qu'il s'actionne ✓ - Forum - HTML
- Afficher un code html sans qu'il prenne effet ✓ - Forum - HTML
2 réponses
Profil bloqué
tu peux utiliser htmlentities comme ceci :
il t'affichera donc bien :
< a href="toto">titi</a>
et non un lien appelé titi pointant vers toto.
n'hesite pas à nous notifier si le problème est résolu afin d'en aider d'autre...
<?php $str = htmlentities('< a href="toto">titi</a>'); echo $str; ?>
il t'affichera donc bien :
< a href="toto">titi</a>
et non un lien appelé titi pointant vers toto.
n'hesite pas à nous notifier si le problème est résolu afin d'en aider d'autre...