Crates.io | html2pango |
lib.rs | html2pango |
version | 0.6.0 |
source | src |
created_at | 2018-06-01 05:53:03.579426 |
updated_at | 2023-10-02 19:23:31.966832 |
description | Library to convert html to pango. |
homepage | |
repository | https://gitlab.gnome.org/World/html2pango |
max_upload_size | |
id | 68026 |
size | 101,158 |
Small rust lib to parse simple html tags and convert to pango. This lib also converts raw links to http links and sanitizes the message to avoid not wanted tags.
The current state of the library is Alpha as it's a proof of concept for mapping a subset of html to pango markup.
This code was inside Fractal project to parse matrix.org messages that contains links and make that drawable in a GtkLabel. We decided to move to this repo to be able to extend and use in other projects like Hammond.