Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wrote one for a project that captures a portion of the DOM and sends it to an LLM.

It’s strips all JS/event handlers, most attributes and most CSS, and only keeps important text nodes

I needed this because I was using LLM to reimplement portions of a page using just tailwind, so needed to minimise input tokens



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: