Split Federation as separate context
This commit is contained in:
17
lib/service/formatter/html.ex
Normal file
17
lib/service/formatter/html.ex
Normal file
@@ -0,0 +1,17 @@
|
||||
# Portions of this file are derived from Pleroma:
|
||||
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
# Upstream: https://git.pleroma.social/pleroma/pleroma/blob/develop/lib/pleroma/html.ex
|
||||
|
||||
defmodule Mobilizon.Service.Formatter.HTML do
|
||||
@moduledoc """
|
||||
Service to filter tags out of HTML content.
|
||||
"""
|
||||
|
||||
alias HtmlSanitizeEx.Scrubber
|
||||
|
||||
alias Mobilizon.Service.Formatter.DefaultScrubbler
|
||||
|
||||
def filter_tags(html), do: Scrubber.scrub(html, DefaultScrubbler)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user