+

Search Tips   |   Advanced Search

Import and export HTML

We can import HTML and export HTML to and from presentation templates and elements that store HTML.

  1. To import HTML with no references to images:

    1. Click Import.

    2. Select the HTML file to upload.

    3. Click Save.

  2. To import HTML with references to images:

    1. Click Import.

    2. Select the zip file to upload.

      The zip file must have the following file structure:

      • A folder named images containing the referenced images.

      • A file named index.html containing the HTML markup.

      Images are referenced within index.html using an img tag with an src attribute with a relative path to the images folder. For example: <img src="images/logo.jpg" />

      Web Content Manager does not import other image reference types. For example, Web Content Manager cannot import an image referenced within a background tag. To import an image in tags other than img tags, import the image into a file resource component and then reference the file resource component within the imported HTML.

    3. Click Save.

  3. To export HTML click Export.

    1. Navigate to the directory to export the HTML file to and then click OK.

      No warning is given when exporting HTML to an existing file. Care should be taken not to save over existing HTML files when exporting HTML.


What to do next

  • Web Content Manager does not verify if the imported HTML or text is valid. For example, if you import HTML containing a JavaScript error, then that error appears in the content when previewed.

  • The encoding of the current browser window determines the encoding of the imported or exported HTML. For example if the browser is currently using GB2312 for Chinese, then only GB2312 encoded HTML can be imported, and on export the exported HTML encoding is GB2312.

  • Some HTML editors save HTML with a mixture of UTF-8 and non UTF-8 encodings. We cannot successfully upload files containing a mixture of UTF-8 and non UTF-8 encodings. Save the HTML file as UTF-8 only and try importing the HTML.


Parent Work with element designs