Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

az-trust-filter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

az-trust-filter

Angular Trust Filter - $sce.trustAs via a filter | trust

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

az-trust-filter

Status: npm version npm downloads Build Status Code Coverage

az-trust-filter makes it easier to use the ng-bind-html directive by allowing you to avoid having to escape your stuff in your controller before binding it in the template.

Demo

Installation

npm install -S az-trust-filter

Usage:

Depend on the module

angular.module('yourModule', ['azTrustFilter']);

Use it

<strong>Arbitrary HTML</strong>
<div>
  <input ng-model="userHtml" placeholder="Type at your own risk!" />
</div>
<div ng-bind-html="userHtml | trust"></div>

<hr />

<strong>Custom trust type</strong>
<div>
  <input ng-model="userUrl" type="url"  placeholder="Type a url" />
</div>
<div ng-bind-html="userUrl | trust:'url'"></div>

LICENSE

MIT

Code of Conduct

Contributor Covenant

Credits

The code for this filter was taken (with permission) from Eric Clemmons's post: Angular Trust Filter

Keywords

FAQs

Package last updated on 03 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc