Filter API output before sending anything to innerHTML

Thank you: @Tiszka