bonjour,
je souhaite avec php accéder au code d'une page Html (exemple ci-dessous) et chercher certaines lignes de code (les lignes en rouge) pour les commenter .
tout ceci avant l'execution (affichage) de ma page htm
le resultat souhaité :
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 <htm> <head> <script> ... </script> </head> <body> <table> <tr> <td> colonne AAA</td> <td> colonne BBB</td> </tr> <tr> <td> colonne CCC </td> <td> colonne DDD</td> </tr> </table> </body> </htm>
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 <htm> <head> <script> ... </script> </head> <body> <table> <tr> <td> colonne AAA</td> /* <td> colonne BBB</td> */ </tr> <tr> /*<td> colonne CCC </td>*/ <td> colonne DDD</td> </tr> </table> </body> </htm>
Merci d'avance
Partager