sanitize HTML before stripping tags in order to avoid empty results with certain Word formattings
This commit is contained in:
parent
3beae86d4d
commit
0e060bc34e
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ def checkStyle(k):
|
||||||
|
|
||||||
|
|
||||||
def stripAll(value):
|
def stripAll(value):
|
||||||
|
value = sanitize(value)
|
||||||
def collectText(tags):
|
def collectText(tags):
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
if type(tag) is NavigableString:
|
if type(tag) is NavigableString:
|
||||||
|
|
Loading…
Add table
Reference in a new issue