+ def get_content(entry) do
+ base_content = string_from_xpath("//content", entry)
+
+ with scope when not is_nil(scope) <- string_from_xpath("//mastodon:scope", entry),
+ cw when not is_nil(cw) <- string_from_xpath("/*/summary", entry) do
+ "<span class='mastodon-cw'>#{cw}</span><br>#{base_content}"
+ else _e -> base_content
+ end
+ end
+
+ def get_tags(entry) do
+ :xmerl_xpath.string('//category', entry)
+ |> Enum.map(fn (category) -> string_from_xpath("/category/@term", category) end)
+ end
+