# searchpro/1.9.7/simplehtmldom/manual/docs/api/constants.md

BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS &amp; JavaScript, version 1.9.7. 33 lines.

- Page: https://pluginprobe.com/plugins/searchpro/1.9.7/code/simplehtmldom/manual/docs/api/constants.md
- Raw: https://pluginprobe.com/plugins/searchpro/1.9.7/raw/simplehtmldom/manual/docs/api/constants.md
- Modified: 2024-08-20T18:00:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/searchpro/1.9.7/code/simplehtmldom/manual/docs/api/constants.md#L10-L20`.

```markdown
---
title: Constants
---

# Constants

Constants define how the parser treats documents. They can be defined before
loading the parser to globally replace the default values.

## DEFAULT_TARGET_CHARSET

Defines the default target charset for text returned by the parser.

Default: `'UTF-8'`

## DEFAULT_BR_TEXT

Defines the default text to return for `<br>` elements.

Default: `"\r\n"`

## DEFAULT_SPAN_TEXT

Defines the default text to return for `<span>` elements.

Default: `' '`

## MAX_FILE_SIZE

Defines the maximum number of bytes the parser can load into memory. This limit
only applies to the source file or string.

Default: `600000`
```
