Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F116331
README.md
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
README.md
View Options
#
FastSanitize
A
high
performance
HTML
sanitization
library
built
on
[
FastHTML
][
fh
],
our
rewrite
of
Myhtmlex
.
It
was
created
to
improve
HTML
sanitization
performance
in
[
Pleroma
][
pl
],
a
high
-
performance
,
versatile
federated
social
networking
platform
.
[
fh
]:
https
:
//git.pleroma.social/pleroma/myhtmlex
[
pl
]:
https
:
//pleroma.social
##
Features
*
Meta
-
programming
:
build
your
own
scrubbing
policies
with
macros
,
mostly
compatible
with
HtmlSanitizeEx
.
*
Performance
:
on
average
,
2
-
3
times
faster
than
HtmlSanitizeEx
with
typical
documents
with
considerably
less
memory
usage
.
*
Uses
the
MyHTML
parsing
engine
which
parses
HTML
in
the
same
way
browsers
do
.
*
Uses
an
efficient
AST
for
scrubbing
HTML
nodes
and
Erlang
iolists
for
efficient
HTML
generation
.
##
Installation
The
package
can
be
installed
by
adding
`
fast_sanitize
`
to
your
list
of
dependencies
in
`
mix
.
exs
`
:
```
elixir
def
deps
do
[
{:
fast_sanitize
,
"~> 0.1.0"
}
]
end
```
Docs
can
be
found
at
[
https
:
//hexdocs.pm/fast_sanitize](https://hexdocs.pm/fast_sanitize).
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sun, Dec 1, 7:01 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41623
Default Alt Text
README.md (1 KB)
Attached To
Mode
R15 fast_sanitize
Attached
Detach File
Event Timeline
Log In to Comment