Skip to content

Commit e560f79

Browse files
authored
Merge pull request #18 from hirasso/patch-1
fix: typos in README.md
2 parents f04d123 + 2a0c81a commit e560f79

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ This is SSL URL:
141141
Email url has no scheme, we use anoter method to convert them, and it will add `mailto:` at begin of `href`.
142142

143143
```php
144-
$text = $aurolink->convertEmail($text);
144+
$text = $autolink->convertEmail($text);
145145
```
146146

147147
Output
@@ -153,7 +153,7 @@ Output
153153

154154
## Attributes Escaping
155155

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

@@ -174,7 +174,7 @@ $autolink->setEscapeHandler(fn => ...);
174174
We can set this option by constructor or setter:
175175

176176
```php
177-
$auitolink->textLimit(50);
177+
$autolink->textLimit(50);
178178

179179
$text = $autolink->convert($text);
180180
```
@@ -188,15 +188,15 @@ http://campus.asukademy.com/learning/job/84-fin...
188188
Use Your own limit handler by set a callback:
189189

190190
```php
191-
$auitolink->textLimit(function($url) {
191+
$autolink->textLimit(function($url) {
192192
return substr($url, 0, 50) . '...';
193193
});
194194
```
195195

196196
Or use `\Asika\Autolink\LinkHelper::shorten()` Pretty handler:
197197

198198
```php
199-
$auitolink->textLimit(function($url) {
199+
$autolink->textLimit(function($url) {
200200
return \Asika\Autolink\Autolink::shortenUrl($url, 15, 6);
201201
});
202202
```
@@ -228,7 +228,7 @@ Output:
228228
Strip Scheme on link text:
229229

230230
```php
231-
$auitolink->stripScheme(true);
231+
$autolink->stripScheme(true);
232232

233233
$text = $autolink->convert($text);
234234
```
@@ -244,11 +244,11 @@ Output
244244
Auto escape URL, default is `true`:
245245

246246
```php
247-
$auitolink->autoEscape(false);
247+
$autolink->autoEscape(false);
248248

249249
$text = $autolink->convert($text);
250250

251-
$auitolink->autoEscape(true);
251+
$autolink->autoEscape(true);
252252

253253
$text = $autolink->convert($text);
254254
```
@@ -266,7 +266,7 @@ Convert URL which no scheme. If you pass `TRUE` to this option, Autolink will us
266266
`http` as default scheme, you can also provide your own default scheme.
267267

268268
```php
269-
$auitolink->linkNoScheme('https');
269+
$autolink->linkNoScheme('https');
270270

271271
$text = $autolink->convert('www.google.com.tw');
272272
```

0 commit comments

Comments
 (0)