Nsfw showmore #69

Merged
CyberDomovoy merged 4 commits from nsfw_showmore into master 2012-07-24 02:39:20 +02:00
Showing only changes of commit 47a5a5c03a - Show all commits

View file

@ -70,7 +70,9 @@ function get_body_length($body) {
$string = trim($body);
// We need to get rid of hidden tags (display: none)
$dom = DomDocument::loadHTML($body);
// Get rid of the warning. It would be better to have some valid html as input
$dom = @DomDocument::loadHTML($body);
$xpath = new DOMXPath($dom);
/*