kses Closes #2503.