Limit `style` attribute on `th` and `td` elements to specific properties
Previously we whitelisted the entire `style` attribute on `th` and `td` elements, in order to allow Markdown table alignment to work. But this opened us up to a potential exploit by allowing a malicious user to define properties besides `text-align` in the attribute. We now remove everything except `text-align: (center|left|right)`.
Showing
Please register or sign in to comment