-3

I'm adding , as innerHTML via javascript in label and it is just not showing any thing at all. im retriving data from API 's responce

{
    "answer_a": "<footer>",
    "answer_b": "<section>",
    "answer_c": "<bottom>",
    "answer_d": "<down>",
    "answer_e": null,
    "answer_f": null
}

output it is giving rn is this image this image

i was expecting this as image an image of expected output

beardeo
  • 1
  • 2

1 Answers1

0

When using .innerHTML your values are considered html elements. To prevent this use the property .text.

BenjaminH
  • 324
  • 3
  • 13