Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/escape-text.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/odd-backslash-runs.md

This file was deleted.

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# htmljs-parser

## 5.16.0

### Minor Changes

- [#246](https://github.com/marko-js/htmljs-parser/pull/246) [`402c94f`](https://github.com/marko-js/htmljs-parser/commit/402c94f224eb0e99dab492026d03d8cfd7e84a38) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Export `escapeText`, which escapes text content so the parser reads it back as the same text, for tools that print Marko source. Only a backslash run before `${` or `$!{` is changed; pass the content printed after the text as the second argument so that a backslash run ending the text does not escape a placeholder it leads into.

### Patch Changes

- [#246](https://github.com/marko-js/htmljs-parser/pull/246) [`402c94f`](https://github.com/marko-js/htmljs-parser/commit/402c94f224eb0e99dab492026d03d8cfd7e84a38) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Read an odd run of five or more backslashes before `${` or `$!{` as escapes, like a run of one or three: `\\\\\${x}` is now the text `\\${x}` rather than two backslashes and a placeholder.

## 5.15.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "htmljs-parser",
"version": "5.15.1",
"version": "5.16.0",
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
"keywords": [
"HTML",
Expand Down