generateHTMLString(): String updating;
The generateHTMLString method of the JadeHTMLClass class generates and returns the HTML string. The original HTML string is updated with the following information before it is returned.
Property values of the receiver
Uniform Resource Locator (URL) changes
HyperText Transfer Protocol (HTTP) or secure HyperText Transfer Protocol (HTTPS)
Any attributes set by the setAttributes method
In the following example, the HTML for the page contained multi-byte characters that were converted to UTF-8 when the page was imported. The reimplemented generateHTMLString method replaces the standard HTML header to inform browsers that the body is in UTF-8 format.
vars message, header: String; begin message := inheritMethod(); header := 'Content-Type: text/html;charset=UTF-8' & CrLf & CrLf; return replyAsBinary(header, message.Binary); end;