From 85926ae8f85d06a2db5782c13e2facec37d9c8d4 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 28 Jun 2018 02:04:49 -0400 Subject: [PATCH] The conditional_escape call caused downloaded OCR text to contain HTML entities like " Signed-off-by: Roberto Rosario --- mayan/apps/ocr/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mayan/apps/ocr/utils.py b/mayan/apps/ocr/utils.py index 6af7aa193a..0ac5de5fb3 100644 --- a/mayan/apps/ocr/utils.py +++ b/mayan/apps/ocr/utils.py @@ -2,7 +2,6 @@ from __future__ import unicode_literals from django.apps import apps from django.utils.encoding import force_text -from django.utils.html import conditional_escape def get_document_ocr_content(document): @@ -16,4 +15,4 @@ def get_document_ocr_content(document): except DocumentPageOCRContent.DoesNotExist: pass else: - yield conditional_escape(force_text(page_content)) + yield force_text(page_content)