HTML Input field
Hi.
I meed am input field to let the user enter an HTML table, to design the headers of a document template, so all content has the same header. RichEditor cant handle this. Is it safe or not to allow the user to enter HTML code? Any recommendations?
I meed am input field to let the user enter an HTML table, to design the headers of a document template, so all content has the same header. RichEditor cant handle this. Is it safe or not to allow the user to enter HTML code? Any recommendations?
Solution
Both of these support tables, I’m sure there’s a few more too. In general though it is risky to allow direct html. You have to make sure it’s getting sanitized properly.
https://filamentphp.com/plugins/mohamedsabil83-tinyeditor
https://filamentphp.com/plugins/awcodes-tiptap-editor
https://filamentphp.com/plugins/mohamedsabil83-tinyeditor
https://filamentphp.com/plugins/awcodes-tiptap-editor

