PHPackages                             darkghosthunter/larasane - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. darkghosthunter/larasane

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

darkghosthunter/larasane
========================

Quickly and easily secure HTML text.

v1.0.0(5y ago)396[2 issues](https://github.com/DarkGhostHunter/Larasane/issues)MITPHPPHP ^7.4||^8.0

Since Apr 14Pushed 5y agoCompare

[ Source](https://github.com/DarkGhostHunter/Larasane)[ Packagist](https://packagist.org/packages/darkghosthunter/larasane)[ Docs](https://github.com/darkghosthunter/larasane)[ Fund](https://paypal.me/darkghosthunter)[ Fund](https://ko-fi.com/DarkGhostHunter)[ RSS](/packages/darkghosthunter-larasane/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

[![ Clay Banks - Unslash (UL) #kBaf0DwBPbE](https://camo.githubusercontent.com/6835faed2f8ccc636a05623a0822a0bf2bc57065c83327b735c5dd2f04551c35/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313538343831333437303631332d3562316331636164336436393f69786c69623d72622d312e322e3126697869643d65794a6863484266615751694f6a45794d446439266175746f3d666f726d6174266669743d63726f7026773d3132383026683d34303026713d3830)](https://camo.githubusercontent.com/6835faed2f8ccc636a05623a0822a0bf2bc57065c83327b735c5dd2f04551c35/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313538343831333437303631332d3562316331636164336436393f69786c69623d72622d312e322e3126697869643d65794a6863484266615751694f6a45794d446439266175746f3d666f726d6174266669743d63726f7026773d3132383026683d34303026713d3830)

[![Latest Stable Version](https://camo.githubusercontent.com/b1e5910b62f457ed1ed1d3f159a06d3ca15f8f0df182a7666674523dba7f6d83/68747470733a2f2f706f7365722e707567782e6f72672f6461726b67686f737468756e7465722f6c61726173616e652f762f737461626c65)](https://packagist.org/packages/darkghosthunter/larasane) [![License](https://camo.githubusercontent.com/612517abd6d21be0689b93f700caa3044389bd3c6c4a4ab0052b105b4cb2c1e8/68747470733a2f2f706f7365722e707567782e6f72672f6461726b67686f737468756e7465722f6c61726173616e652f6c6963656e7365)](https://packagist.org/packages/darkghosthunter/larasane) [![](https://camo.githubusercontent.com/6cf6ede61156651bd8b9f3c5cfd00f9e62428f22d37a0856856fdd6cbbcc3da3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461726b67686f737468756e7465722f6c61726173616e652e737667)](https://camo.githubusercontent.com/6cf6ede61156651bd8b9f3c5cfd00f9e62428f22d37a0856856fdd6cbbcc3da3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461726b67686f737468756e7465722f6c61726173616e652e737667) [![](https://github.com/DarkGhostHunter/Larasane/workflows/PHP%20Composer/badge.svg)](https://github.com/DarkGhostHunter/Larasane/workflows/PHP%20Composer/badge.svg) [![Coverage Status](https://camo.githubusercontent.com/df6542726706178305f70dd960f25a02f26961f1d74990ceb466eceb67e1733b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4461726b47686f737448756e7465722f4c61726173616e652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/DarkGhostHunter/Larasane?branch=master) [![Laravel Octane Compatible](https://camo.githubusercontent.com/70359a356da237cd29561bc5d0bb80baae775b5ff62f288ed324755382858342/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2532304f6374616e652d436f6d70617469626c652d737563636573733f7374796c653d666c6174266c6f676f3d6c61726176656c)](https://github.com/laravel/octane)

Larasane
========

[](#larasane)

Quickly sanitize text into safe-HTML using fluid methods.

Requirements
------------

[](#requirements)

- PHP 7.4, 8.0 or later.
- Laravel 7.x, 8.x or later.

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

[](#installation)

Just fire up Composer:

```
composer require darkghosthunter/larasane

```

And that's it.

Usage
-----

[](#usage)

After you receive the HTML input you want to sanitize, use the `Sanitizer` facade to do it.

```
