nvda
f759c214 - Sanitize HTML for documentation from translators markdown (#16043)

Commit
2 years ago
Sanitize HTML for documentation from translators markdown (#16043) Follow up to #15945 Summary of the issue: Translators can add arbitrary HTML to markdown translations files. This is a stored XSS risk Description of user facing changes Should be none - however see known issues Description of development approach Used the python bindings for the Rust Ammonia sanitization library Testing strategy: Tested building docs, diffed HTML results between this PR and beta. Known issues with pull request: The sanitization deletes any HTML tags that are not recognized. This includes using angle brackets around words, e.g.: <minor>. If these are wrapped by code formatting these are correctly escaped: e.g. `<minor>` While english files are mostly correct, many translated files do not wrap text with angle brackets with code formatting. This means certain parts of translated documentation will be stripped, i.e. <major>.<minor>.<patch> becomes ..
Author
Parents
Loading