定制 mcaskill/php-strip-html 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-23