16 releases

0.5.27 Mar 6, 2023
0.5.26 Aug 20, 2022
0.5.24 Jul 30, 2022

#33 in #convert-html

Download history 23/week @ 2024-11-13 114/week @ 2024-11-20 103/week @ 2024-11-27 73/week @ 2024-12-04 87/week @ 2024-12-11 37/week @ 2024-12-18 186/week @ 2024-12-25 45/week @ 2025-01-01 60/week @ 2025-01-08 35/week @ 2025-01-15 138/week @ 2025-01-22 72/week @ 2025-01-29 104/week @ 2025-02-05 80/week @ 2025-02-12 114/week @ 2025-02-19 106/week @ 2025-02-26

419 downloads per month
Used in 3 crates

MIT license

24KB
537 lines

htr

A very very fast HTML to React transformer

Getting Started

View the initial root folder for more info.


lib.rs:

HTML to react transformer

htr is a fast html to react transformer that uses btrees to search and replace html properties to the react equivalent.

How to use htr

There are two ways to use htr:

  • Convert props React transform html string to a react string.
  • Convert to React Lets you transform the html to a react component.

Basic usage

First, you will need to add htr to your Cargo.toml.

Next, add your html to one of the transform methods to get your react, output.

Dependencies

~100KB