Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.