We're updating the issue view to help you get more done. 

@SafeHtml should support adding enforced attributes

Description

I have the following case:

1 <link href="some link here" rel="stylesheet" type="text/css">

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

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

Backport?

Community Help Wanted

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

5.4.2.Final
5.3.6.Final
6.0.7.Final

Priority

Minor