Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85651333
README.md
No One
Temporary
Actions
View 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
#
FastHTML
A
C
Node
wrapping
lexborisov
'
s
[
myhtml
](
https
:
//github.com/lexborisov/myhtml).
Primarily
used
with
[
FastSanitize
](
https
:
//git.pleroma.social/pleroma/fast_sanitize).
*
Available
as
a
hex
package
:
`
{:
fast_html
,
"~> 0.1.0"
}
`
*
[
Documentation
](
https
:
//hexdocs.pm/fast_html/FastHTML.html)
##
Example
iex
>
:
fast_html
.
decode
(
"<h1>Hello world</h1>"
)
{
"html"
,
[],
[{
"head"
,
[],
[]},
{
"body"
,
[],
[{
"h1"
,
[],
[
"Hello world"
]}]}]}
Benchmark
results
(
removed
Nif
calling
mode
)
on
various
file
sizes
on
a
2
,
5
Ghz
Core
i7
:
Settings
:
duration
:
1.0
s
##
FileSizesBench
[
15
:
28
:
42
]
1
/
3
:
github_trending_js
.
html
341
k
[
15
:
28
:
46
]
2
/
3
:
w3c_html5
.
html
131
k
[
15
:
28
:
48
]
3
/
3
:
wikipedia_hyperlink
.
html
97
k
Finished
in
7.52
seconds
##
FileSizesBench
benchmark
name
iterations
average
time
wikipedia_hyperlink
.
html
97
k
1000
1385.86
µ
s
/
op
w3c_html5
.
html
131
k
1000
2179.30
µ
s
/
op
github_trending_js
.
html
341
k
500
5686.21
µ
s
/
op
##
Contribution
/
Bug
Reports
*
Please
make
sure
you
do
`
git
submodule
update
`
after
a
checkout
/
pull
*
The
project
aims
to
be
fully
tested
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 30, 6:09 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1738104
Default Alt Text
README.md (1 KB)
Attached To
Mode
R16 fast_html
Attached
Detach File
Event Timeline
Log In to Comment