Skip to content

Commit

Permalink
add usage with escaped characters
Browse files Browse the repository at this point in the history
  • Loading branch information
phloe committed Jan 4, 2024
1 parent 4760056 commit 505afa1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ tree.match(matchHelper("input.my-control[type!='radio'][checked], input[value^='
});
```

## Classnames with escaped characters

```js
var matchHelper = require("posthtml-match-helper");

tree.match(matchHelper("input.\\[display:none\\]"), function (node) {
// do stuff with node that matched either of the selectors...
});
```


## The helper function

#### Arguments
Expand Down

0 comments on commit 505afa1

Please sign in to comment.