html_built = django.dispatch.Signal()
published = django.dispatch.Signal()
- short_html_url_name = 'catalogue_book_short'
-
class AlreadyExists(Exception):
pass
def fragment_data(self):
fragment = self.choose_fragment()
if fragment:
- return {'title': fragment.book.pretty_title(), 'html': fragment.get_short_text()}
+ return {
+ 'title': fragment.book.pretty_title(),
+ 'html': re.sub('</?blockquote[^>]*>', '', fragment.get_short_text()),
+ }
else:
return None