From 86c50500036926d5a5fd42dad2fd002ddf40b069 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 7 May 2023 12:26:31 +1000 Subject: [PATCH] Allow href attrs --- slices/admin/commands/bookmarks/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slices/admin/commands/bookmarks/cache.rb b/slices/admin/commands/bookmarks/cache.rb index 9518007..f517386 100644 --- a/slices/admin/commands/bookmarks/cache.rb +++ b/slices/admin/commands/bookmarks/cache.rb @@ -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)