Do you support PHP Tidy functions?
Ce contenu n’est pas encore disponible dans votre langue.
Yes. The Tidy extension for PHP is available on Ruachost hosting.
Tidy cleans up and repairs HTML. It can fix tags that aren’t closed, tidy up indentation and turn messy markup into valid HTML or XHTML. It’s useful when you process HTML from users or other websites.
<?php$html = '<p>Unclosed paragraph<b>bold text';$tidy = tidy_parse_string($html, ['indent' => true], 'utf8');$tidy->cleanRepair();echo $tidy;If you get a “Call to undefined function tidy_parse_string” error
Section titled “If you get a “Call to undefined function tidy_parse_string” error”PHP extensions are set for each PHP version. To switch Tidy on:
- Log in to cPanel.
- Open Select PHP Version.
- Click Extensions and tick tidy.
See Changing PHP versions and settings using PHP Selector.
For the full list of Tidy functions, see the PHP manual.
Cette page vous a-t-elle aidé ?
Merci pour votre retour.