@SafeHtml should support adding enforced attributes

Description

I have the following case:

I would like to be able to provide list of enforced attributes in @SafeHtml annotation, so I can enforce spefic values of attributes to some elements.

According to this documentation, Jsoup's Whitelist supports it.

Notes:

  • Is there existing validator which changes the validated value?

P.S. I don't mind to contribute

Environment

None

Status

Assignee

Unassigned

Reporter

Petromir Dzhunev

Labels

Feedback Requested

None

Feedback Requested By

None

backPortable

Backport?

Suitable for new contributors

Yes, likely

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

Priority

Minor
Configure