1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
4 from ..base import WLElement
8 HTML_TAG = EPUB_TAG = 'a'
10 def get_epub_attr(self, builder):
11 attr = super().get_epub_attr(builder)
12 attr['href'] = self.text
15 def get_html_attr(self, builder):
16 attr = super().get_epub_attr(builder)
17 attr['target'] = '_blank'
18 attr['href'] = self.text