PHPackages                             laravelgems/escape - 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. laravelgems/escape

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

laravelgems/escape
==================

Basic methods to escape untrusted data before inserting into different HTML contexts

1.0.0(9y ago)013.1k1MITPHPPHP \*

Since Dec 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/laravelgems/escape)[ Packagist](https://packagist.org/packages/laravelgems/escape)[ Docs](https://github.com/laravelgems/escape)[ RSS](/packages/laravelgems-escape/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (1)

Make your pages safer
=====================

[](#make-your-pages-safer)

[![Build Status](https://camo.githubusercontent.com/3440bc843449b27eb70f370c10be88edbd2d90198463c27f6aaa24895d505615/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c67656d732f6573636170652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/laravelgems/escape)

This library provides several methods that help you prevent XSS attacks on your pages.

These methods escape untrusted data properly. Just follow simple rules and you're safe.

Quick example
-------------

[](#quick-example)

```
