<p><br></p> being entered from Summernote

I have an insert form that adds info to DB with Summernote. If the summernote field is left empty it adds <p><br></p> to the database. I need this to be null or empty.

On the detail page I have a dmx-hide: that isn’t hiding because the field is not empty.

So do I format my input into the insert statement so that it removes it there? Or do I use a condition on my show/hide field that doesn’t show if table value = <p><br></p>

Please check:

Personally I use a ternary on the value to be inserted as if you use the replace formatter you could replace valid instances in the middle of the input value

I.e.

textinputvalue == '<p><br></p>' ? null : textinputvalue

@bpj are you doing that at the form level, or in the insert query in server connect?

As the insert value on the server