Skip to content

Commit

Permalink
Prepare for 2.0.4 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed May 24, 2024
1 parent a7dca95 commit 7474c6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ Output

```

## Attributes Escaping

As `htmlspecialchars()` in PHP 8.1 or higher will escape single quote as default,
Autolink will also escape single quote even in 8.0. Use this method to keep all escape
behavior same at any PHP versions:

```php
$autolink->escape('...');
```

If you want to change the escape behavior, set your custom escape handler:

```php
$autolink->setEscapeHandler(fn => ...);
```

## Options

### `text_limit`
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.3
2.0.4

0 comments on commit 7474c6a

Please sign in to comment.