Skip to content
GitLab
Menu
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
52b05137
Commit
52b05137
authored
Sep 09, 2018
by
kaniini
Browse files
formatter: use Pleroma.HTML module instead of HtmlSanitizeEx directly
parent
16307da3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/formatter.ex
View file @
52b05137
...
...
@@ -193,7 +193,7 @@ def get_custom_emoji() do
# TODO: make it use something other than @link_regex
def
html_escape
(
text
,
"text/html"
)
do
H
tmlSanitizeEx
.
basic_html
(
text
)
H
TML
.
filter_tags
(
text
)
end
def
html_escape
(
text
,
"text/plain"
)
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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