Skip to content

Commit a803bc9

Browse files
committed
Update README.md
1 parent afefb52 commit a803bc9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,21 @@ This is SSL URL:
9999
<a href="https://www.google.com.tw" class="center">https://www.google.com.tw</a>
100100
```
101101

102+
## Convert Email
103+
104+
Email url has no scheme, we use anoter method to convert them, and it will add `mailto:` at begin of `href`.
105+
106+
``` php
107+
$text = $aurolink->convertEmail($text);
108+
```
109+
110+
Output
111+
112+
``` html
113+
<a href="mailto:foo@example.com">foo@example.com</a>
114+
115+
```
116+
102117
## Options
103118

104119
### `text_limit`

0 commit comments

Comments
 (0)