Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
c50353e6
Commit
c50353e6
authored
Dec 30, 2018
by
Rin Toshaka
Browse files
shame on me for not testing after revert
parent
3f9da55a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/html.ex
View file @
c50353e6
...
...
@@ -15,8 +15,11 @@ def get_scrubbers() do
end
def
filter_tags
(
html
,
nil
)
do
get_scrubbers
()
|>
Enum
.
reduce
(
html
,
fn
scrubber
,
html
->
filter_tags
(
html
,
get_scrubbers
())
end
def
filter_tags
(
html
,
scrubbers
)
when
is_list
(
scrubbers
)
do
Enum
.
reduce
(
scrubbers
,
html
,
fn
scrubber
,
html
->
filter_tags
(
html
,
scrubber
)
end
)
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment