2 ms·
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
by purple-leafy 2y ago
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