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

Identity and linkify links #70

Closed
alexfornuto opened this issue Jul 14, 2022 · 3 comments
Closed

Identity and linkify links #70

alexfornuto opened this issue Jul 14, 2022 · 3 comments
Assignees
Labels

Comments

@alexfornuto
Copy link
Contributor

in K8sSettings.js we inject descriptions from the yaml spec.

The ask is to add a regex that detects URLs (https://*) and wraps them in html a tags pointing to the same URL.

@nhayfield
Copy link
Contributor

https://stackoverflow.com/questions/19484370/how-do-i-automatically-wrap-text-urls-in-anchor-tags

Parsing text into html isn't recommended though as it can lead to script injections. you will have to use a div with dangerouslySetHtml attribute or something similar.

@nhayfield nhayfield assigned alexfornuto and unassigned nhayfield Jul 14, 2022
@alexfornuto alexfornuto removed their assignment Aug 9, 2022
@desimone
Copy link
Collaborator

desimone commented Sep 1, 2022

@wasaga -- Were you going to re-do the parsing of this in go as I recall?

@desimone
Copy link
Collaborator

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

No branches or pull requests

4 participants