We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7dca95 commit 7474c6aCopy full SHA for 7474c6a
README.md
@@ -139,6 +139,22 @@ Output
139
140
```
141
142
+## Attributes Escaping
143
+
144
+As `htmlspecialchars()` in PHP 8.1 or higher will escape single quote as default,
145
+Autolink will also escape single quote even in 8.0. Use this method to keep all escape
146
+behavior same at any PHP versions:
147
148
+```php
149
+$autolink->escape('...');
150
+```
151
152
+If you want to change the escape behavior, set your custom escape handler:
153
154
155
+$autolink->setEscapeHandler(fn => ...);
156
157
158
## Options
159
160
### `text_limit`
VERSION
@@ -1 +1 @@
1
-2.0.3
+2.0.4
0 commit comments