angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

Download HTML Template After Edit

Open ankitpzr opened this issue 6 years ago • 2 comments

If I put Ready made Inline Styled into this HTML editor, and download it it works fine. If I am gonna edited this HTML template and then try to download. All InLine Styling CSS gone from the all elements of HTML. Please suggest.

ankitpzr avatar Sep 09 '20 13:09 ankitpzr

I too get the same issue. Any solution you found?

shakthifuture avatar Jan 09 '21 09:01 shakthifuture

CSS stripping is due to sanitization (sanitize: true removes inline styles for security). To preserve styles: set sanitize: false in config (⚠️ only for trusted content). Related to #580 (XSS security). For download feature with styles preserved, you need to handle this in your own download logic.

kolkov avatar Nov 22 '25 15:11 kolkov