sanitized-html

v0.1.6arrow_drop_down
v0.1.6
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
STATUS
Passing
DOWNLOADS
830
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
92 KB
1 contributor
Install sanitized-html as a package?
Copied
npm i @bit/clui.nui-ui.ui.common.sanitized-html
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right

Description

Component for sanitizing user input HTML before render in react components. Please use this component to wrap any string that contains HTML before render in react.

Import from bit.dev

https://bit.dev/clui/nui-ui/ui/common/sanitized-html

yarn add @bit/clui.nui-ui.ui.common.sanitized-html

import SanitizedHTML from '@bit/clui.nui-ui.ui.common.sanitized-html';

Props

Below are the props defined for this component:

NameTypeDefaultDescription
htmlstring--
Properties
NameType
html
(required)
string
Help and resources