fuelen
HTML2Text - extract readable plain text from HTML using Rust NIF
HTML2Text provides a simple and efficient way to extract readable plain text from HTML content. It leverages the power of Rust’s html2text crate to deliver fast HTML parsing and text extraction while maintaining the logical structure and readability of the content.
- Hex: html2text | Hex
- Docs: README — HTML2Text v0.1.0
- GitHub:
Most Liked
fuelen
html2text v0.2.0 released — breaking changes and a cleaner API!
This version introduces a new, more consistent API with proper error handling and an optional keyword list for configuration.
What changed
Before (v0.1.x):
HTML2Text.convert(html, width)
# => returns plain string
- The second argument was required and only accepted a width (
integeror:infinity) - Errors (like width too narrow) would raise directly
Now (v0.2.0):
HTML2Text.convert(html, opts)
# => {:ok, result} | {:error, reason}
HTML2Text.convert!(html, opts)
# => result (raises on error)
convert/2now returns{:ok, text}or{:error, reason}convert!/2is a new function that raises on error (for convenience)- The second parameter is now an optional keyword list of options
1
Popular in Libraries
https://www.conduitframework.com/
The best overview for how things are tied together is this presentation. Modules and functions are pre...
New
I created a new library GitHub - benvp/ex_cva: Class Variance Authority for Elixir which aims to make it very easy to define different va...
New
Hi everyone,
We would like to announce that Plataformatec is working on a new MySQL driver called MyXQL. Our goal is to eventually integ...
New
Hello :wave:
Allow me to introduce you to Tz, an alternative time zone database support to Tzdata.
Why another library?
First and fore...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
I have been updating a library that allows you to pipe between functions that use the erlang result tuple convention.
Assuming you have...
New
EctoJob
A transactional job queue built with Ecto, PostgreSQL and GenStage
Available on Hex.pm: ecto_job | Hex
Docs: API Reference — ec...
New
I created Kitto a framework for dashboards inspired by Dashing.
[demo]
The distributed characteristics of Elixir and the low memory foo...
New
Hi, I wanted share a small library we at Revelry Labs made for rendering react components from the server side. There are instructions fo...
New
For a good number of months I've been working on creating a very basic RTMP live video streaming server. Now that I have a very, very ba...
New
Other popular topics
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
I have a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
New
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them ...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
by Lance Halvorsen
Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
New








