tesseract OCR support for spamfilters

This commit is contained in:
czaks
2016-06-09 11:08:29 +02:00
parent 36d762514c
commit 8a46c7a0d5
4 changed files with 52 additions and 6 deletions

View File

@@ -2695,7 +2695,7 @@ function slugify($post) {
elseif (isset ($post['body_nomarkup']) && $post['body_nomarkup'])
$slug = $post['body_nomarkup'];
elseif (isset ($post['body']) && $post['body'])
$slug = strip_html($post['body']);
$slug = strip_tags($post['body']);
// Fix UTF-8 first
$slug = mb_convert_encoding($slug, "UTF-8", "UTF-8");