becklyn/search-text-transformer
Composer 安装命令:
composer require becklyn/search-text-transformer
包简介
A library that extracts plain text from HTML for usage in search engines (like Elasticsearch)
关键字:
README 文档
README
Transforms HTML to searchable plain text for usage in conjunction with a search engine (like Elasticsearch).
Installation
Install via composer.
Usage
<?php use Becklyn\SearchText\SearchTextTransformer; $transformer = new SearchTextTransformer(); $plain = $transformer->transform("<p>Some HTML content</p>");
Testing
All test cases belong into tests/fixtures and must have the file extension .test.
The test format is:
--TEST--
Here is a plain text description of this test.
--HTML--
<p>Some html.</p>
--EXPECT--
The expected result.
The --TEST-- segment is optional.
统计信息
- 总下载量: 930
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-12-09