|
@@ -35,7 +35,7 @@ class SectionParser():
|
|
|
soup.p.string = self.update_data.get('p', [''])[self.p_order]
|
|
|
text = self._get_spaces(text) + str(soup)
|
|
|
self.p_order += 1
|
|
|
- elif '<a ' in text:
|
|
|
+ elif '<a ' in text and '</a>' in text:
|
|
|
soup = BeautifulSoup(text, "html.parser")
|
|
|
soup.a.string = self.update_data.get('a', [''])[self.a_order]
|
|
|
text = self._get_spaces(text) + str(soup)
|