Kévin Commaille
88f56b0e00
html: Upgrade html5ever
...
Requires a complete change of the HTML tree, to have interior mutability
and be able to return borrowed data from a Handle.
It is now a Rc-based tree where each node has a weak reference to
its parent and strong references to its children.
This results ina few breaking changes to the public API.
2024-09-07 09:56:02 +02:00
Kévin Commaille
d568d579ad
html: Remove support for name attribute
...
According to MSC4159.
2024-09-06 09:21:24 +02:00
Kévin Commaille
002fe2fb3d
html: Add support for mathematical messages
...
According to MSC2191 / Matrix 1.11
2024-06-22 11:00:18 +02:00
Kévin Commaille
bd56071587
html: Add more settings to SanitizerConfig
...
Allows to use it with a whitelist or a blacklist,
and extend or reduce the lists from the Matrix spec.
2024-05-06 14:56:53 +02:00
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
da1df75619
html: Add support for deprecated HTML tags
...
According to Matrix 1.10
2024-04-07 15:45:26 +02:00
Kévin Commaille
ba973c98f1
html: Expose sanitize API on Html
2023-08-29 11:19:48 +02:00