16 releases

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

#19 in #convert-html

Download history 161/week @ 2023-12-17 97/week @ 2023-12-24 110/week @ 2023-12-31 135/week @ 2024-01-07 173/week @ 2024-01-14 177/week @ 2024-01-21 250/week @ 2024-01-28 228/week @ 2024-02-04 116/week @ 2024-02-11 350/week @ 2024-02-18 360/week @ 2024-02-25 328/week @ 2024-03-03 244/week @ 2024-03-10 222/week @ 2024-03-17 209/week @ 2024-03-24 227/week @ 2024-03-31

909 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

~89KB