Allow href attrs

This commit is contained in:
2023-05-07 12:26:31 +10:00
parent e96e6dfdf7
commit 86c5050003

View File

@@ -13,7 +13,7 @@ module Admin
bookmark.url
tempfile = Down.download(bookmark.url)
content = Readability::Document.new(tempfile.read, tags: %w[div section header p h1 h2 h3 h4 h5 h6 ol ul li table td tr thead tbody a code pre]).content
content = Readability::Document.new(tempfile.read, tags: %w[div section header p h1 h2 h3 h4 h5 h6 ol ul li table td tr thead tbody a code pre], attributes: %w[href]).content
bookmark_repo.update(id: bookmark_id, cached_content: content)