Jan 12, 2017 4:55 AM - edited Jan 12, 2017 4:56 AM
In hudDB 'rich-text' fields still output a '<p></p>' tag, even if the field has no value.
Let's say you have a title and sub-text you get from hubDB:
If the field '_text' has no value, the html markup will still look like this on the front-end:
Notice the empty '<p></p>' tag.
If you want to check rich-text fields for emty values, you can use this if statement:
If the rich-text field has no value, nothing will render.
Jan 12, 2017 11:03 PM
The HubDB table editor always wraps values in p tags. It seems to do this even when the content is empty. If you haven't edited the rich text value, it will be blank, so your test would have to check both the empty string and '<p></p>'.
In any case, we'll fix this behavior.