They have an option to change query result into JSON, not HTML AFAIK (although nothing stops you to do that with strings). You still need to provide UI for json via some javascript frameworks such as Vue.js.
There is an option to change query result to HTML in both. I checked.
You are wrong. Give us reference for native html function in postgres and not string massage.