2020.1

Table Of Contents
Note
These date and time pattern letters and patterns conform to standard Java notation. For more
information, see http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html.
loadhtml()
Loads HTML content from the specified HTML file. The file may be located inside the template
(see "Snippets" on page279) or hosted on a Content Management System or on another
location outside the template.
An optional selector allows you to retrieve only the content of matching elements.
Note
l The specified HTML file is expected to be UTF-8 encoded.
l Loadhtml() is cached per batch run (based on the URL) in print/email.
Tip
To load a JavaScript file (.js) or a style sheet (.css) you can use loadtext(). See "loadtext()" on
page787.
Tip
External content is not loaded while editing a script. To test a script that loads external content, you
can do a preflight; see "Doing a Preflight" on page388.
loadhtml(location)
Loads all HTML from the specified HTML file.
location
String containing a path that can be absolute or relative to the section/context.
Use snippets/<snippet-name> to retrieve the content from an HTML file residing in the
Page 782