monolith icon indicating copy to clipboard operation
monolith copied to clipboard

How to get just HTML, no <script>

Open nikivdev opened this issue 1 year ago • 1 comments

Just ran monolith --no-css --no-images "https://github.com/teamhanko/hanko/blob/main/frontend/elements/README.md#css-shadow-parts"

And got back massive response

image

Where 70% of response is that <script> tag. I just need to get HTML, not sure how.

Thanks. 🖤

nikivdev avatar Mar 30 '24 15:03 nikivdev

Hello Nikita,

I think --no-js is what you're looking for, it should remove all <script> tags as well. If the site very JS-heavy, try leveraging that Chrome-based pre-render trick described in the README, that should work.

snshn avatar Mar 30 '24 22:03 snshn