You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
708 B

1 year ago
# Tiny Components - Raw
1 year ago
1 year ago
Component for not escaping Html. Thanks to [@GianlucaGuarini](https://github.com/GianlucaGuarini)
1 year ago
1 year ago
Source: [https://gitea.node001.net/tiny-components/raw](https://gitea.node001.net/tiny-components/raw)
1 year ago
Mirror: [https://github.com/node001-net/tiny-components-raw](https://github.com/node001-net/tiny-components-raw)
1 year ago
1 year ago
## Installation
Setup this registry in your project .npmrc file:
```
1 year ago
@tiny-components:registry=https://gitea.node001.net/api/packages/tiny-components/npm/
1 year ago
```
Install with npm or yarn
```
npm i --save @tiny-components/raw
yarn add @tiny-components/raw
```
## Using
Thats all, html in String will not escaped.
1 year ago
```
<tiny-raw html={ htmlString }></tiny-raw>
```