Directory

sanitize-element - Vaadin Add-on Directory

Element wrapper for the Sanitize.js library (a whitelist-based HTML sanitizer) sanitize-element - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/howking/sanitize-element](https://github.com//howking/sanitize-element/blob/v0.2.2/README.md) on 2019-05-22 ]** [![Build Status](https://travis-ci.org/howking/sanitize-element.svg?branch=master)](https://travis-ci.org/howking/sanitize-element) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/howking/sanitize-element) ![Polymer2.0](https://img.shields.io/badge/Polymer-2.0-blue.svg) ![ES6](https://img.shields.io/badge/es-6-red.svg) # <sanitize-element> Element wrapper for the [Sanitize.js](https://github.com/gbirke/Sanitize.js) library (a whitelist-based HTML sanitizer), to use [``](https://www.webcomponents.org/element/PolymerElements/marked-element). ## Usage ```html
``` Other config like this. ``` html
``` Note: The `config` attribute must be double quoted JSON. ## Install the Polymer-CLI First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your element locally. ## Viewing Your Element ``` $ polymer serve ``` ## Running Tests ``` $ polymer test ``` Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.