# Get HTML Markup in Different Forms
Learn how to get edited document HTML markup - body without head tag, content in raw and base64 form, and others using GroupDocs.Editor for Node.js via Java API.
> This guide demonstrates how to open an input document, convert it to an intermediate `EditableDocument`, and get HTML markup in different forms depending on client requirements using GroupDocs.Editor for Node.js via Java.
## Preparations
When an input document is loaded into the `Editor` class and opened for editing by transforming it into the intermediate `EditableDocument` class, it is possible to generate and get HTML markup in different forms. The code below shows various methods to achieve this.
First, you need to load the document into the `Editor` class and open it for editing, as demonstrated in the code below.
```javascript
// Import necessary modules
const groupdocsEditor = require('groupdocs-editor');
// Specify the input file path
const inputFilePath = 'C:\\input_path\\document.docx'; // Path to some document
// Create load options
const loadOptions = new groupdocsEditor.WordProcessingLoadOptions();
// Create an Editor instance with the input file and load options
const editor = new groupdocsEditor.Editor(inputFilePath, loadOptions);
// Open the document for editing with format-specific edit options
const editOptions = new groupdocsEditor.WordProcessingEditOptions();
const document = editor.edit(editOptions);
```
The code above prepares a ready-to-use instance of the `EditableDocument` class, which contains the original document in its own intermediate format and is able to generate HTML markup in different forms.
## Getting Whole HTML Content
The most default and standard method for generating HTML markup is the parameterless `getContent()` method:
```javascript
const htmlContent = document.getContent();
```
If the document has external resources (stylesheets, fonts, images), they are referenced via different HTML elements: stylesheets are specified through `` elements, while images through ``. When using the `getContent()` method, such external resources will be referenced by external links. For example:
```html
```
Quite often on the web server where such HTML will be edited, resources are processed by specific HTTP handlers. In such cases, it is required to adjust paths to such endpoints. A more advanced overload of the `getContent()` method can help:
```javascript
const externalImagesPrefix = "http://www.mywebsite.com/images/id=";
const externalCssPrefix = "http://www.mywebsite.com/css/id=";
const prefixedHtmlContent = document.getContent(externalImagesPrefix, externalCssPrefix);
```
In the example above, the specified prefixes will be added to every external link in the document's markup. For example, with the code above, the links will be as follows:
```html
```
## Getting HTML BODY Content
Many HTML WYSIWYG editors are not able to process the whole HTML document with the `