Skip to content

Tidy 5.7.16 -> empty result #740

Description

@ogolovanov

Hello.

I don't know how to reopen my previous ticket, so i created new one.
Take a look, please.
Those things make me nervous :)

root@6cf6ead63be0:/app# php -v

PHP 7.2.3-1ubuntu1 (cli) (built: Mar 14 2018 22:03:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.3-1ubuntu1, Copyright (c) 1999-2018, by Zend Technologies

root@6cf6ead63be0:/app# php -r 'phpinfo();' | grep -i tidy

/etc/php/7.2/cli/conf.d/20-tidy.ini,
tidy
Tidy support => enabled
libTidy Version => 5.7.16
libTidy Release => 2018/04/27
tidy.clean_output => 0 => 0
tidy.default_config => no value => no value

test code:

$content = file_get_contents('/tmp/1.html');
$tidy = new tidy();
$tidy->parseString($content, array());
var_dump($tidy->cleanRepair());
var_dump(strlen($content), strlen($tidy->value));

result:

bool(true)
int(56467)
int(0)

File uploaded at: https://seo-utils.ru/storage/get_document/39b732df607ef1eb490a5dd1ee324e82/?download=1
Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions