using from tidy plugin php for clean piece of html in page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oranoos3000
    New Member
    • Jan 2009
    • 107

    using from tidy plugin php for clean piece of html in page

    hi
    i d like to use tidy plugin php for clean only piece of html page instead of all of the code page .
    i can use
    $tidy = tidy_parse_file ("my html code", $options);
    tidy_clean_repa ir($tidy);


    but my problem is that output above code consist of <html> in other words
    output returned as a perfect page but i'd like to return only cleaned the same
    input code


    thanks alot
  • phobia
    New Member
    • May 2010
    • 5

    #2
    Try using the show-body-only option.

    Comment

    • oranoos3000
      New Member
      • Jan 2009
      • 107

      #3
      char-encoding in htmltidy error

      hi i use this plugin and work correctly for my purpose ,
      unfortunately while i have encoding character in input html
      tidy give an error to each encoding character.
      would you please help me?
      thanks

      Comment

      Working...