Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fast_sanitize
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pleroma
Elixir libraries
fast_sanitize
Commits
4a68b632
Commit
4a68b632
authored
Feb 11, 2020
by
rinpatch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting
parent
eb8dfbc9
Pipeline
#22751
passed with stage
in 2 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/fast_sanitize/fragment.ex
lib/fast_sanitize/fragment.ex
+2
-3
No files found.
lib/fast_sanitize/fragment.ex
View file @
4a68b632
...
...
@@ -23,7 +23,8 @@ defmodule FastSanitize.Fragment do
end
)
end
defp
build_self_closing_tag
(
tag
,
attrs
),
do
:
[
"<"
,
to_string
(
tag
),
build_attr_chunks
(
attrs
),
"/>"
]
defp
build_self_closing_tag
(
tag
,
attrs
),
do
:
[
"<"
,
to_string
(
tag
),
build_attr_chunks
(
attrs
),
"/>"
]
defp
build_start_tag
(
tag
,
[]),
do
:
[
"<"
,
to_string
(
tag
),
">"
]
...
...
@@ -59,10 +60,8 @@ defmodule FastSanitize.Fragment do
subtree_to_iodata
(
subtree
,
scrubber
)
end
defp
subtree_to_html
([],
_
),
do
:
{
:ok
,
""
}
defp
subtree_to_html
(
tree
,
scrubber
)
do
iodata
=
subtree_to_iodata
(
tree
,
scrubber
)
rendered
=
:erlang
.
iolist_to_binary
(
iodata
)
...
...
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