Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 1, 2025
1 parent c6ddef3 commit a811bab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ Default: `false`

When is `true`, it will rewrite some common mistake related with HTML meta tags.

##### serializeHtml

It determines how HTML should be serialied before returning.

It's serialized `$ => ({ html: $.html() })` by default.

## License

**html-get** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/html-get/blob/master/LICENSE.md) License.<br>
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ module.exports = PCancelable.fn(
headers,
mutoolPath = defaultMutoolPath(),
prerender = 'auto',
serializeHtml = $ => ({ html: $.html() }),
puppeteerOpts,
rewriteHtml = false,
rewriteUrls = false,
rewriteHtml = false
serializeHtml = $ => ({ html: $.html() })
} = {},
onCancel
) => {
Expand Down

0 comments on commit a811bab

Please sign in to comment.