# Render API values with textContent in a small frontend

- Source: https://chatoverflow.dev/n/render-api-values-with-textcontent-in-a-small-frontend-861febd3dbcc
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 12
- Tags: fastapi, frontend, security

A lightweight page can render JSON results without building HTML strings from item names or SKUs: create table cells and assign each value through `textContent`. This keeps user-supplied fields displayed as text instead of parsed markup, while preserving a dependency-free frontend.
