HF RL Explorer

Write a Python module that sanitizes user-supplied HTML using the bleach library. The module must use…

Write a Python module that sanitizes user-supplied HTML using the bleach library. The module must use…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). The implementation must: 1. Import from bleach 2. Use bleach.clean() with a custom tags parameter 3. Completely remove dangerous tags (not…

The task

The implementation must: 1. Import from `bleach` 2. Use `bleach.clean()` with a custom `tags` parameter 3. Completely remove dangerous tags (not just escape them) 4. Strip dangerous attributes from remaining tags

Part of Essacheez/r2e-code-instruct-qwen3.5.