0.1.13 • Published 1 year ago

dangerous-html v0.1.13

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

A simple custom-element to render html using lit-html.

Browsers by default won't render any html that is injected using innerHtml. In extreme cases where we want this to happen. And when the user is in control of scripts they are trying to add. You can use this simple custom-element.

:warning: :warning: :warning:

Install

yarn add danngerous-html

Usage

If you are using it in any build system based projects. You can just import the module and leave it.

import './dangerous-html'

If you are using with traditional scripts.

<script type="text/javascript" src="https://unpkg.com/dangerous-html/dist/lib.umd.js" ></script>

Example

<dangerous-html html='...html...'></dangerous-html>
0.1.12

1 year ago

0.1.13

1 year ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago