Hello, I have to insert text from Summernote in two different tables with two “Database Insert” actions.
In first one table, text must be formatted with HTML tags (and it works); in second table instead I have to insert it without these format, in simple text.
How can I do that? In second “Database insert” how I can set the Post Value?
If possible given your setup, I’d use the .text option on a second (can be hidden) input area on the page. Then, use a duplicate set of Database Insert steps, but select the hidden input area containing the text-only output.
I haven’t done this in a while, but I think you can just duplicate the elements and edit the copy’s data source to end with .text
Here’s a method from 2017 to do it entirely in code if my memory of doing this in Wappler is confused with accomplishing it in another tool: https://stackoverflow.com/a/41433995 , but I’d try to use the .text or .code option instead if you can! Summernote does a better job of cleaning up the output than any regex or other js-stripping method I’ve used.
There is a strip tags formatter available, so just apply it to the $_POST variable in the insert action.
<h1>title</h1> <p>text here</p> will be stored as title text here
Thank you!!!
