Low Output Latency streaming HTML rewriter/parser with CSS-selector based API. It is designed to modify HTML on the fly with minimal buffering. It can quickly handle very large documents, and operate in environments with limited memory resources. The crate serves as a back-end for the HTML rewriting functionality of Cloudflare Workers, but can be used as a standalone library with a convenient API for a wide variety of HTML rewriting/analysis tasks. The parser switches back to the tag scanner as soon as input leaves the scope of all selector matches. The tag scanner may also sometimes switch the parser to the Lexer - if it requires additional tag information for the parsing feedback simulation. Having two different parser implementations for the same grammar will increase development costs and is error-prone due to implementation inconsistencies. We minimize these risks by implementing a small Rust macro-based DSL which is similar in spirit to Ragel.

Features

  • Regular full parser, that produces output for all types of content that it encounters
  • Looks for start and end tags and skips parsing the rest of the content
  • LOL HTML’s tag scanner is typically twice as fast as LazyHTML and the lexer has comparable performance
  • Each component is easy to match having a start tag token
  • The crate serves as a back-end for the HTML rewriting functionality of Cloudflare Workers
  • It is designed to modify HTML on the fly with minimal buffering

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML

License

BSD License

Follow LOL HTML

LOL HTML Web Site

You Might Also Like
Relax: PRTG Monitors Your IT for You Icon
Relax: PRTG Monitors Your IT for You

Stay in control and avoid IT headaches. PRTG monitors your network, devices, and apps - receive alerts when it matters most.

You’re the go-to IT person, always putting out fires and keeping things running. With PRTG, you get reliable alerts to monitor your entire IT infrastructure, without the noise. Our intuitive setup gives you a clear overview of your network, devices, and applications in real time. Get instant alerts only when something needs your attention, whether you’re at your desk or on the move. Spend less time worrying about outages and more time focusing on what matters. Set up PRTG once and let it work for you - PRTG has you covered.
Start Your Free PRTG Trial Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of LOL HTML!

Additional Project Details

Programming Language

Rust

Related Categories

Rust HTML XHTML

Registered

2023-04-27