Skip to content
This repository was archived by the owner on Apr 30, 2023. It is now read-only.

Conversation

@pyonghe
Copy link

@pyonghe pyonghe commented Jun 4, 2021

E.g. When you visit a profile url with emoji, the link is not displayed properly,

image

image

By encoding and the replacing the \x with % this solve the issue as shown below,
repr(data_slug.encode("utf-8")).replace("\x","%").replace("b","",1).replace("'","")

@vysecurity
Copy link
Owner

vysecurity commented Jun 4, 2021 via email

@pyonghe
Copy link
Author

pyonghe commented Jun 4, 2021

Yes there are instances where LinkedIn profile url has emoji. As shown in the screen cap above. Then the generated html will have a wrong url due to the encoding that is done with that emoji.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants