Skip to content

Exporting HTML

Now that you have set up the editor in your application and users are creating content, it's time to save the resulting work i.e HTML.

This is how you can export the design's HTML.

Save Button

Most applications will add a save button that calls this export function.

unlayer.exportHtml(function(data) {
  var json =; // design json
  var html = data.html; // final html

  // Do something with the json and html

What's Next?

Managing Templates