pdf with html description

This commit is contained in:
j 2016-01-29 22:17:39 +05:30
parent 5d92e0b397
commit 95af9f4f4a
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,8 @@ def info(pdf):
data['date'] = '%s-%s-%s' % (d[:4], d[4:6], d[6:])
if 'author' in data and isinstance(data['author'], str):
data['author'] = [ox.normalize_name(data['author'])]
if 'description' in data:
data['description'] = ox.strip_tags(ox.decode_html(data['description'])).strip()
return data
'''