Relative Content

Tag Archive for reactjsnode.jssanitizereact-quill

sanitize-html will not allow tag from react-quill

In my react app I am using react-quill for the text editor and on the backend sanitize-html with JOI for the validation. In the text editor leaving empty lines results to this: <p><br></p>. sanitize-html does not allow ‘br’ tags by default, but no matter the option it will not allow the tag.