Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to render react quill the way it is without the html tags

The simplest way is to use the same react-quill component with editing disabled. This method doesn't need you to install any extra package. You can do it by passing a prop readOnly whose value is set to true (By default it is false)

Here is the code for the component which you can use to preview side:

<ReactQuill
   value={this.state.content}
   readOnly={true}
   theme={"bubble"}
/>
 
PREVIOUS NEXT
Tagged: #render #react #quill #html #tags
ADD COMMENT
Topic
Name
3+4 =