Problem
The scanner result card inserts dynamic URL and threat values into HTML.
Current Behavior
User-entered URLs and API-derived threat labels are interpolated into innerHTML.
Why This Improvement Is Needed
Scanner output may include user-controlled values. Rendering those values without escaping can create unsafe UI behavior and makes future changes riskier.
Proposed Solution
Add a small HTML escaping helper and sanitize result titles, descriptions, URLs, and threat tags before rendering.
Expected Outcome
The scanner result UI remains visually identical while handling dynamic values safely.
Additional Notes
This branch intentionally keeps the existing result-card structure.
Problem
The scanner result card inserts dynamic URL and threat values into HTML.
Current Behavior
User-entered URLs and API-derived threat labels are interpolated into
innerHTML.Why This Improvement Is Needed
Scanner output may include user-controlled values. Rendering those values without escaping can create unsafe UI behavior and makes future changes riskier.
Proposed Solution
Add a small HTML escaping helper and sanitize result titles, descriptions, URLs, and threat tags before rendering.
Expected Outcome
The scanner result UI remains visually identical while handling dynamic values safely.
Additional Notes
This branch intentionally keeps the existing result-card structure.