From 60ca44e0cffc100f9f1c447f9c4291d7568748b4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 11 Apr 2012 08:35:09 +0000 Subject: [PATCH] minor adjustment --- lib/core/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 06367f264..a3ecf0817 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2161,7 +2161,8 @@ def extractTextTagContent(page): Returns list containing content from "textual" tags """ - return [_.group('result') for _ in re.finditer(TEXT_TAG_REGEX, page or "")] + page = re.sub(r"(?si)%s[^<]*" % REFLECTED_VALUE_MARKER, "", page or "") + return [_.group('result') for _ in re.finditer(TEXT_TAG_REGEX, page)] def trimAlphaNum(value): """