3 ms·
Finding and Fixing DOM-Based XSS with Static Analysis
- austincheney 5y agoShouldn’t these concerns be easily solved by attaching strings to the DOM using the DOM methods like textContent and setAttribute? If that isn’t enough shouldn’t it also be solved with something like: string.replace(/&/g, “&”) .replace(/</g, “<”) .replace(/>/g, “$gt;”);