mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-23 17:23:40 +01:00
Quick fix for Descriptions when string--needs to be revisited.
This commit is contained in:
parent
a274a83726
commit
84e8d045b8
1 changed files with 3 additions and 1 deletions
|
|
@ -468,7 +468,9 @@ class BaseSiteAdapter(Configurable):
|
|||
#print("\n\nsvalue:\n%s\n"%svalue)
|
||||
if self.getConfig('keep_summary_html'):
|
||||
if isinstance(svalue,basestring):
|
||||
svalue = bs.BeautifulSoup(svalue,"html5lib")
|
||||
# bs4/html5lib add html, header and body tags.
|
||||
svalue = bs.BeautifulSoup(svalue,"html5lib").body
|
||||
svalue.name='span'
|
||||
self.story.setMetadata('description',self.utf8FromSoup(url,svalue))
|
||||
else:
|
||||
self.story.setMetadata('description',stripHTML(svalue))
|
||||
|
|
|
|||
Loading…
Reference in a new issue