2.0.0 • Published 7 years ago

dwayne-html v2.0.0

Weekly downloads
9
License
-
Repository
-
Last release
7 years ago

dwayne-html

Why?

The plugin is needed for inserting generated html into elements. You may also transform it (sanitize for example) before inserting it.

Be aware that generated html may contain dangerous scripts!

$ npm install --save dwayne-html

Usage

import sanitizeHtml from 'sanitize-html';
import Html from 'dwayne-html';

Html.transform = sanitizeHtml;
<script>
  import Html from 'dwayne-html';
</script>

<div Html="{html}"/>

API

Set Html.transform to the function that transforms the html.

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago