diff options
author | Andres Rey <[email protected]> | 2016-11-18 14:38:05 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-11-18 14:38:05 +0000 |
commit | b2e63b9ec84fa5011d7d4758f2d28ac92d71c40b (patch) | |
tree | a7bd6ff7923cdff1082029975c35e5daa36af640 /src | |
parent | a01a70b4368d0c01b15f187d0c398486733546f1 (diff) |
ALWAYS
USE
MB_*
FUNCTIONS
!
Diffstat (limited to 'src')
-rw-r--r-- | src/HTMLParser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index 649a74f..2d13c44 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -231,7 +231,7 @@ class HTMLParser public function getLinkDensity($readability) { $linkLength = 0; - $textLength = strlen($readability->getTextContent(true)); + $textLength = mb_strlen($readability->getTextContent(true)); if (!$textLength) { return 0; |