Open msk4862 opened 1 year ago
Below line is not rendering with showdown:
<img src="" onerror={alert('hi')} />
I just wanted it to get rendered as it is as a string.
Code:
import xssfilter from 'showdown-xss-filter'; const MarkdownConverter = new Showdown.Converter({ tables: true, simplifiedAutoLink: true, strikethrough: true, tasklists: true, extensions: [xssfilter], }); export const previewHTML = markdown => Promise.resolve(MarkdownConverter.makeHtml(markdown));
Below line is not rendering with showdown:
<img src="" onerror={alert('hi')} />
I just wanted it to get rendered as it is as a string.
Code: