9 Commits

Author SHA1 Message Date
Kévin Commaille
e161a57eda html: Add HTML data types for elements and attributes suggested by Matrix Spec 2024-05-06 14:56:53 +02:00
Kévin Commaille
18244143ca html: Take a reference to SanitizerConfig for Html::sanitize_with
Allows to reuse the configuration without cloning it.
2024-05-06 14:56:53 +02:00
Kévin Commaille
6e763ee5e7 html: Allow to navigate through the HTML tree 2024-04-24 13:15:12 +02:00
Kévin Commaille
d36f485b19 html: Do not export Node in the public API
It is not usable on its own and it is
not in the output of any public method.
2024-04-24 13:15:12 +02:00
Kévin Commaille
221e9c055c html: Add method to get root node of Html 2024-04-24 13:15:12 +02:00
Kévin Commaille
e4a46437c9 html: Add note about errors in Html::parse docs 2023-08-29 11:19:48 +02:00
Kévin Commaille
ba973c98f1 html: Expose sanitize API on Html 2023-08-29 11:19:48 +02:00
Kévin Commaille
0120861951 html: Don't expose methods to manipulate HTML
Users should just use the provided way to sanitize HTML
2023-08-29 11:19:48 +02:00
Kévin Commaille
80c71ef454 html: Rename Fragment to Html 2023-08-29 11:19:48 +02:00