HTML Rewriter

Hello,

I am looking to use the HTML Rewriter to edit parts of a website like meta data and divs and so forth, but upon attempting to add the HTML Rewriter I noticed that it doesn’t autocomplete with anything from the API. And when I want to use it methods like .transform simply don’t do anything. I am coding this inside of my wrangler. but am confused on how exactly this API is supposed to be implemented.

Thank you.

Try using one of the examples to guide you from the developer documentation:

This shows how to rewrite links - essentially you’d do the same for your meta tags or divs.