• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved Newest version for php-tidy/libtidy with HTML5 support possible?

Azurel

Silver Pleskian
I don't find much informations for this problem. Maybe you can help me?

tidy released every year a new version: HTML Tidy Binary Releases
Since version 5.x its supports HTML5 too. I need HTML 5 support for my PHP project (command tidy_repair_string). I use CentOS 7 with Onyx.

# rpm -qa | grep tidy
plesk-php70-tidy-7.0.16-centos7.17021709.x86_64
plesk-php56-tidy-5.6.30-centos7.17012012.x86_64
plesk-php54-tidy-5.4.45-centos7.16032517.x86_64
libtidy-0.99.0-31.20091203.el7.x86_64

But its use a library that is 8 years old. phpinfo() said: "libTidy Release 25 March 2009". Is here a new version with HTML 5 support for PHP?

My problem with tidy. Code like "<a href=".."><div>text</div></a>" will be converted to "<a href=".."></a> <div>text</div>". HTML 5 must allow "div" in "a". Can anyone help me here?
 
Hi Azurel,

Is here a new version with HTML 5 support for PHP?
Nope, it isn't ( yet ).

If you still would like to have another library for your PHP - version(s), you have to compile the corresponding version on your own ( I would recommend to install an additional PHP - version, when you desire to compile a version on your own, so that you don't have to care about updates/upgrades/patches from your vendor for the vendor PHP version, nor for the Plesk PHP - versions on your server. ;)
 
Back
Top