pdf with html description
This commit is contained in:
parent
5d92e0b397
commit
95af9f4f4a
1 changed files with 2 additions and 0 deletions
|
@ -210,6 +210,8 @@ def info(pdf):
|
||||||
data['date'] = '%s-%s-%s' % (d[:4], d[4:6], d[6:])
|
data['date'] = '%s-%s-%s' % (d[:4], d[4:6], d[6:])
|
||||||
if 'author' in data and isinstance(data['author'], str):
|
if 'author' in data and isinstance(data['author'], str):
|
||||||
data['author'] = [ox.normalize_name(data['author'])]
|
data['author'] = [ox.normalize_name(data['author'])]
|
||||||
|
if 'description' in data:
|
||||||
|
data['description'] = ox.strip_tags(ox.decode_html(data['description'])).strip()
|
||||||
return data
|
return data
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue