---
title: ElementRewriterOptions
summary: Options for content insertion and replacement methods on Element.
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/html-rewriter/interface.ElementRewriterOptions/
---

**Kind:** Interface  
**Module:** [html-rewriter](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/html-rewriter/)  
**Package:** @fastly/js-compute 4.0.1  
**Since:** 3.35.0  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/html-rewriter.d.ts#L88

Options for content insertion and replacement methods on [Element](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/html-rewriter/class.Element/).

## Properties

### escapeHTML

**Type:** `boolean`  
**Flags:** optional  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/html-rewriter.d.ts#L92

If `true`, any HTML markup in the content will be escaped so it is safe to insert as text.
