Jump to content

php html dom parser


Danny620

Recommended Posts

Im using some software called php html dom parser i wont to be able to keep the souce tidy

i.e before dom parser

 

<?php

 

//////////////////////SEO TOOL///////////////////////////

 

$title = 'Green Deal Nationwide - PB Energy Solutions Ltd';

$description = 'Delivering all your environmental needs to \'green\' up your business, improve reputation, increase profitability and give a competitive advantage.';

 

///////////////////////////////////////////////////////

 

?>

<?php include('includes/settings.php'); ?>

<?php include('includes/header.php'); ?>

 

    <div class="container">

 

        <div id="large-page-img">

        <img src="<?php echo URL(); ?>images/home-page-slide.jpg" width="911" height="230" />

        <img src="<?php echo URL(); ?>images/home-page-slide-1.jpg" width="911" height="230" />

        <img src="<?php echo URL(); ?>images/home-page-slide-2.jpg" width="911" height="230" />

        </div>

        <div id="content-home">

     

        <div class="iedit">

 

after dom parser saved to file

 

<?php    //////////////////////SEO TOOL///////////////////////////    $title = 'Green Deal Nationwide - PB Energy Solutions Ltd';  $description = 'Delivering all your environmental needs to \'green\' up your business, improve reputation, increase profitability and give a competitive advantage.';    ///////////////////////////////////////////////////////    ?>  <?php include('includes/settings.php'); ?>  <?php include('includes/header.php'); ?>        <div class="container">            <div id="large-page-img">          <img src="<?php echo URL(); ?>images/home-page-slide.jpg" width="911" height="230" />          <img src="<?php echo URL(); ?>images/home-page-slide-1.jpg" width="911" height="230" />          <img src="<?php echo URL(); ?>images/home-page-slide-2.jpg" width="911" height="230" />          </div>          <div id="content-home">                  <div class="iedit"><div class="iedit">

 

is there anyway i can keep it like the original fil after dom?

Link to comment
https://forums.phpfreaks.com/topic/253695-php-html-dom-parser/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.