Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative method for deprecated forUri() method #54

Open
marjanovicstefan opened this issue Jan 31, 2022 · 1 comment
Open

Alternative method for deprecated forUri() method #54

marjanovicstefan opened this issue Jan 31, 2022 · 1 comment

Comments

@marjanovicstefan
Copy link

Hi,

I want to replace Encode::forUri with something that is not depricated. Does anyone know what method should I use to cover that up? I can't use forUriComponent() because I have to convert an link, not a query, and also forUriComponent() doesn't convert all the characters as forUri() did

Code example:
private static final ImmutableList<UnaryOperator> ENCODING_CHAIN_URL_IN_HTML_ATTRIBUTE = ImmutableList.of(Encode::forUri, EsEncode::uriAsSafeSchemeUri, Encode::forHtml);

Thanks!

@marjanovicstefan marjanovicstefan changed the title Alternative method for depricated forUri() method Alternative method for deprecated forUri() method Feb 1, 2022
@jmanico
Copy link
Member

jmanico commented Mar 8, 2022

forURL ? No one really uses URI anymore that was just Jeff :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jmanico @marjanovicstefan and others