waughj/html-mail-link
Composer 安装命令:
composer require waughj/html-mail-link
包简介
Simple way to create HTML for email link.
README 文档
README
Simple way to create HTML for email link.
Simply create an instance sending the email as the 1st argument and either use the object as a string or call getHTML() on it to automatically generate HTML for a mailto link.
Example:
new HTMLMailLink( 'waughjai@gmail.com' );
Generates the HTML:
<a href="mailto:waughjai@gmail.com'">waughjai@gmail.com</a>
For custom value shown in the link, push a hash map as the optional 2nd argument with the value you want in the "value" key:
Example:
new HTMLMailLink( 'waughjai@gmail.com', [ "value" => "Email me." ] );
Generates the HTML:
<a href="mailto:waughjai@gmail.com'">Email me.</a>
This hash map can also be used to send all other valid HTML5 attributes, as well as other options. See HTMLLink source code at https://github.com/waughjai/html-link for mo' details.
统计信息
- 总下载量: 76
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2018-11-09