mcaskill/php-strip-html
最新稳定版本:1.0.0
Composer 安装命令:
composer require mcaskill/php-strip-html
包简介
Strip HTML and PHP tags from a string.
关键字:
README 文档
README
(PHP 5 >= 5.4)
strip_html — Strip HTML and PHP tags from a string.
Description
string strip_html( string $str )
This function tries to return a string with all NULL bytes, HTML and PHP tags stripped from a given str. Unlike strip_tags(), this function is mindful of line-breaks and metadata elements (e.g., <style>).
This function is useful for converting a HTML-rich string into a plain-text string for emails.
Parameters
str— The input string.
Return Values
Returns the stripped string.
Installation
With Composer
$ composer require mcaskill/php-strip-html
Without Composer
Why are you not using composer? Download Function.Strip-HTML.php from the gist and save the file into your project path somewhere.
统计信息
- 总下载量: 44.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-23