From 25f6adba1f6a77b3a1efca5cdbc75e318e67882c Mon Sep 17 00:00:00 2001 From: smilerz Date: Thu, 15 Apr 2021 08:50:00 -0500 Subject: [PATCH] unescape html document --- cookbook/helper/recipe_html_import.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/helper/recipe_html_import.py b/cookbook/helper/recipe_html_import.py index f8ce33273..b8553beac 100644 --- a/cookbook/helper/recipe_html_import.py +++ b/cookbook/helper/recipe_html_import.py @@ -7,6 +7,7 @@ from cookbook.helper import recipe_url_import as helper from cookbook.helper.scrapers.scrapers import text_scraper from json import JSONDecodeError from recipe_scrapers._utils import get_host_name, normalize_string +from urllib.parse import unquote def get_recipe_from_source(text, url, space): @@ -72,8 +73,8 @@ def get_recipe_from_source(text, url, space): parse_list = [] html_data = [] images = [] + text = unquote(text) - # text = normalize_string(text) try: parse_list.append(remove_graph(json.loads(text)))