Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60ca44e

Browse files
committed
minor adjustment
1 parent e33ea7c commit 60ca44e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,8 @@ def extractTextTagContent(page):
21612161
Returns list containing content from "textual" tags
21622162
"""
21632163

2164-
return [_.group('result') for _ in re.finditer(TEXT_TAG_REGEX, page or "")]
2164+
page = re.sub(r"(?si)%s[^<]*" % REFLECTED_VALUE_MARKER, "", page or "")
2165+
return [_.group('result') for _ in re.finditer(TEXT_TAG_REGEX, page)]
21652166

21662167
def trimAlphaNum(value):
21672168
"""

0 commit comments

Comments
 (0)