From 82469a1f275ac8ff3adfda20f440e7e29416ee84 Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Tue, 7 Nov 2017 10:13:12 +0000 Subject: Add license --- CHANGELOG.md | 1 + README.md | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92689cc..f43b448 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. ## Unreleased - Merged PR #24. Fixes notice when trying to extract `og:image` +- Added license ## [v0.2.2](https://github.com/andreskrey/readability.php/releases/tag/v0.2.2) diff --git a/README.md b/README.md index 6b30349..5bb66b3 100644 --- a/README.md +++ b/README.md @@ -98,4 +98,20 @@ Readability uses the Element interface and class from *The PHP League's* **[html ## How it works -Readability parses all the text with DOMDocument, scans the text nodes and gives the a score, based on the amount of words, links and type of element. Then it selects the highest scoring element and creates a new DOMDocument with all its siblings. Each sibling is scored to discard useless elements, like nav bars, empty nodes, etc. \ No newline at end of file +Readability parses all the text with DOMDocument, scans the text nodes and gives the a score, based on the amount of words, links and type of element. Then it selects the highest scoring element and creates a new DOMDocument with all its siblings. Each sibling is scored to discard useless elements, like nav bars, empty nodes, etc. + +## License + + Copyright (c) 2010 Arc90 Inc + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file -- cgit v1.2.3