2017 © Pedro Peláez
 

library search-text-transformer

A library that extracts plain text from HTML for usage in search engines (like Elasticsearch)

image

becklyn/search-text-transformer

A library that extracts plain text from HTML for usage in search engines (like Elasticsearch)

  • Tuesday, December 19, 2017
  • by becklyn
  • Repository
  • 2 Watchers
  • 3 Stars
  • 154 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

Search Text Transformer

Transforms HTML to searchable plain text for usage in conjunction with a search engine (like Elasticsearch)., (*1)

Installation

Install via composer., (*2)

Usage

<?php

use Becklyn\SearchText\SearchTextTransformer;

$transformer = new SearchTextTransformer();
$plain = $transformer->transform("

Some HTML content, (*3)

");

Testing

All test cases belong into tests/fixtures and must have the file extension .test., (*4)

The test format is:, (*5)

--TEST--
Here is a plain text description of this test.
--HTML--
<p>Some html.</p>
--EXPECT--
The expected result.

The --TEST-- segment is optional., (*6)

The Versions

19/12 2017

dev-master

9999999-dev https://github.com/Becklyn/SearchTextTransformer

A library that extracts plain text from HTML for usage in search engines (like Elasticsearch)

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.0.7

 

The Development Requires

becklyn

30/12 2016

1.0.0

1.0.0.0 https://github.com/Becklyn/SearchTextTransformer

A library that extracts plain text from HTML for usage in search engines (like Elasticsearch)

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7.0.7

 

The Development Requires

becklyn