fuelen
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.3.0
- GitHub:
Trending in Announcing
Earmark is a pure-Elixir Markdown converter.
It is intended to be used as a library (just call Earmark.as_html), but can also be used as...
New
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hi everyone :waving_hand:
I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
Hello Elixir community!
I am excited to announce the release of a new Elixir library for interacting with the Ethereum blockchain: Ether...
New
Continuum is an OTP-native durable execution engine for Elixir, backed by Postgres. IIt’s an Elixir-native answer to Temporal in other ec...
New
Other Trending Topics
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn:
This is possible because it now builds on a very stab...
New
If you haven’t tried Hologram yet, what’s stopped you?
Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New
Well some of us wanted a difficulty spike - and today we got one :sweat_smile:
https://github.com/sevenseacat/advent_of_code/blob/main/l...
New
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #code-sync
- #exunit
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #ai
- #authentication
- #elixirconf-us
- #umbrella
- #full-time-contract
- #blog-post
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-eu
- #distillery
- #security
- #processes
- #api
- #forms
- #hex










Showing Posts 1 to 2- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
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):integeror:infinity)Now (
v0.2.0):convert/2now returns{:ok, text}or{:error, reason}convert!/2is a new function that raises on error (for convenience)fuelen
v0.3.0 is out with two major additions: annotated rich text output and an inspectable HTML container.
Rich text (
convert_rich/2)Returns structured
{text, [annotation]}tuples instead of formatted strings, so you can build your own renderer (Slack, Discord, email, etc.):Annotations:
:strong,:emphasis,:strikeout,:code,{:link, url},{:image, src},{:preformat, bool},{:colour, {r, g, b}},{:bg_colour, {r, g, b}}.CSS colour extraction is supported via
use_doc_css: true(parses<style>tags and inline styles).HTML container (
HTML2Text.HTML)A struct that renders HTML as formatted text when inspected in IEx — bold, italic, clickable links (OSC 8), CSS true color, and more:
Short content stays inline:
#HTML2Text.HTML<bold>.to_string/1returns the original HTML.Other changes
empty_img_modeoption::ignore(default),{:replace, text}, or:filenamehtml2textRust crate from 0.15.1 to 0.16.7 (rowspan support, bug fixes)HTML2Text.Errorcustom exception for bang functions