causal-agent / scraper

HTML parsing and querying with CSS selectors
https://docs.rs/scraper
ISC License
1.81k stars 100 forks source link

Parse arbitrary html elements out of context #103

Open coderPaddyS opened 1 year ago

coderPaddyS commented 1 year ago

Currently it seems to not be possible to parse arbitrary html elements like <tr>. Is there a way to parse the following snippet?

<tr>
  <td>a</td>
</tr>

Surrounded by a table context is possible, but limiting.