Quick Fix in the PHP Code! Please help!

Discussion in 'PHP' started by roopajyothi, Apr 26, 2010.

  1. #1
    The Below one is a Part of PHP Code
    In this the HTML Code given will be cleaned
    But the output produced is like in a paragraph format (No proper line by line as in input)
    Can you tell me where i need to add the BR tags so it can display in line by line?

    Seeking DP Friends Help!

    Many Thanks! :)
     
    roopajyothi, Apr 26, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Ensure debug is disabled, theirfore would look like:

    <?php
    $html = "<html><div>hey";
    
    $a = new HtmlFixer();
    $a->debug = false;
    $clean = $a->getFixedHtml($html);
    
    echo htmlspecialchars($clean);
    ?>
    PHP:
     
    danx10, Apr 26, 2010 IP
  3. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Danx i PMed you the link!
    Please check and tell me how to fix that!
     
    roopajyothi, Apr 26, 2010 IP
  4. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Any one please help me to fix that!
     
    roopajyothi, Apr 29, 2010 IP
  5. khajeya

    khajeya Member

    Messages:
    256
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #5
    please give me the url of the live site, i want to see it on the run :)
     
    khajeya, Apr 30, 2010 IP
  6. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #6
    For what you need my url??
     
    roopajyothi, May 9, 2010 IP