Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.ob tidyhandler
.tidy access count
.tidy clean repair
.tidy config count
.tidy:: construct
.tidy diagnose
.tidy error count
.tidy get body
.tidy get config
.tidy get error buffer
.tidy get head
.tidy get html ver
.tidy get html
.tidy get opt doc
.tidy get output
.tidy get release
.tidy get root
.tidy get status
.tidy getopt
.tidy is xhtml
.tidy is xml
.tidy load config
.tidy node->get attr
.tidy node->get nodes
.tidy node->next
.tidy node->prev
.tidy parse file
.tidy parse string
.tidy repair file
.tidy repair string
.tidy reset config
.tidy save config
.tidy set encoding
.tidy setopt
.tidy warning count
.tidyNode->hasChildren
.tidyNode->hasSiblings
.tidyNode->isAsp
.tidyNode->isComment
.tidyNode->isHtml
.tidyNode->isJste
.tidyNode->isPhp
.tidyNode->isText
 
   

  tidy_repair_string  


tidy_repair_string

(PHP 5)

tidy_repair_string --  Répare une chaîne HTML en utilisant un fichier de configuration optionnel

Description

string tidy_repair_string ( string data [, mixed config [, string encoding]] )

tidy_repair_string() répare la chaîne fournie.

Exemple 1. Exemple avec tidy_repair_string()

<?php
ob_start
();
?>

<html>
  <head>
    <title>test</title>
  </head>
  <body>
    <p>error</i>
  </body>
</html>

<?php

$buffer
= ob_get_clean();
$tidy = tidy_repair_string($buffer);

echo
$tidy;
?>

L'exemple ci-dessus va afficher :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>test</title>
</head>
<body>
<p>error</p>
</body>
</html>

Note : Les paramètres optionnels config et encoding ont été ajoutés en Tidy 2.0.

Voir aussi tidy_parse_file(), tidy_parse_string() et tidy_repair_file().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.