PHPackages                             lab1521/neaty-html - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lab1521/neaty-html

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lab1521/neaty-html
==================

Cleans up HTML markup with Tidy

v1.0.9(9y ago)247.2k[1 issues](https://github.com/lab1521/NeatyHTML/issues)MITPHPPHP &gt;=5.6.0

Since Aug 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lab1521/NeatyHTML)[ Packagist](https://packagist.org/packages/lab1521/neaty-html)[ Docs](https://github.com/lab1521/NeatyHTML)[ RSS](/packages/lab1521-neaty-html/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (11)Used By (0)

NeatyHTML
=========

[](#neatyhtml)

[![Build Status](https://camo.githubusercontent.com/46dd0ecaba32bd5ee638c0bd8e15b38a369cae57527e83c0458ef15546532fc8/68747470733a2f2f7472617669732d63692e6f72672f6c6162313532312f4e6561747948544d4c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lab1521/NeatyHTML)[![SensioLabsInsight](https://camo.githubusercontent.com/3269e36acaf748d165455e13017bfb51e96b6fd72caf503547244abbb8eba6b2/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65643431336432352d363536642d343864662d613630372d3538626630663531333034392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ed413d25-656d-48df-a607-58bf0f513049)

Cleans up your HTML. Useful for writing content or blogs that accepts HTML markup. Requires the PHP tidy class. Please install this extension first.

Accepting HTML contents (with markups/tags included etc.) on your website is somewhat a concern regarding the security of your website and its users. The dreaded XSS or Cross Site Scripting is always a threat. However with the power of open source we can keep up with common threats and mitigate the issues for safekeeping our websites or blogs.

Installation
------------

[](#installation)

```
composer require lab1521/neaty-html

```

How to use
----------

[](#how-to-use)

```
