mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-29 21:36:48 +02:00
Add href parsing test
This commit is contained in:
@@ -324,3 +324,14 @@ class ParserTestCase(TestCase, ImportTestMixin):
|
||||
self.assertEqual(
|
||||
bookmarks[0].notes, "Interesting notes about the <style> HTML element."
|
||||
)
|
||||
|
||||
def test_unescape_href_attribute(self):
|
||||
html = self.render_html(
|
||||
tags_html="""
|
||||
<DT><A HREF="https://example.com¢er=123" ADD_DATE="1">Imported bookmark</A>
|
||||
<DD>Imported bookmark description
|
||||
"""
|
||||
)
|
||||
|
||||
bookmarks = parse(html)
|
||||
self.assertEqual(bookmarks[0].href, "https://example.com¢er=123")
|
||||
|
Reference in New Issue
Block a user