ph-7/html-to-text 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ph-7/html-to-text

Composer 安装命令:

composer require ph-7/html-to-text

包简介

Lightweight package to convert HTML code to plain text (handy for plain text email format).

README 文档

README

A simple, lightweight, and effective "HTML to Plain Text" converter for your PHP projects 🪄

📄 Overview

Ko Fi - Offer Me A Coffee

Simple. Clean. Efficient. Just what you need to convert HTML code into plain text 🧹

🐘 PHP Requirement

🛠 Installation

composer require ph-7/html-to-text

If you don't already use composer in your project, include Composer's autoload as shown below in your main PHP index file of your project.

require __DIR__ . '/vendor/autoload.php';

🥳 Usage

use PH7\HtmlToText\Convert;

$htmlCode = '<div><p><em>Some random paragraphs...</em></p></div>';

$this->html2Text = new Convert($htmlCode);
$plainText = $this->html2Text->getText();

echo $plainText;

😋 Who cooked it?

Pierre-Henry Soria

@phenrysay @pH7Programming pH-7

Pierre-Henry Soria. A super passionate, zen & pragmatic software engineer 😊 Cheese & dark chocolate lover! 🧀🍫😋

️☕️ Are you enjoying it...? You could offer me a coffee if you wish 😋

Projects using it 🚀

⚖️ License

HTML to Text is generously distributed under MIT 🎉 Enjoy!

统计信息

  • 总下载量: 9.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 1

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固