I would like to store a couple of country flags into my PostgreSQL database. But when my website's view file fetches the flag data the source output looks like this text <td>&#127482;&#127480;</td>
and not the flag Emoji.
INSERT INTO mytable (country, flag) VALUES ('United States', '🇺🇸');
I tried to create the flag column with these Data Types:
- VARCHAR(150)
- TEXT
But the web browser's source output doesn't seem to give me the visual Emoji. I DuckDuckGo some websites and PostgreSQL docs, and read some other threads on this issue. But I can't grasp their answers and understand how to implement this.
Help please.
It works when I hard code the Emojis directly into my HTML files but not when I save it to Postgres and fetches it with EJS.
https://www.quackit.com/character_sets/emoji/emoji_v3.0/emoji_icons_flags.cfm