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

Made links clickable in post content #486

Merged

Conversation

Kalyan-velu
Copy link
Contributor

Closes #472

Implementation:

  • Created a function or utility that scans the caption and posts content for any URLs.
  • Identified and extracted the URLs using regular expressions.
  • Generated clickable HTML hyperlinks for each identified URL.
  • Replaced the plain text URLs with the corresponding clickable links in the rendered caption or post.
  • Ensured that the links open in a new tab or window to avoid disrupting the user's browsing experience.

Copy link
Owner

@narayan954 narayan954 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@narayan954
Copy link
Owner

Thanks for updating some of the elements that were not under this task but crucial :)

@narayan954 narayan954 merged commit cc5c44b into narayan954:master Jun 16, 2023
@Kalyan-velu Kalyan-velu deleted the extract-links-from-post-content branch June 17, 2023 05:07
@Kalyan-velu Kalyan-velu restored the extract-links-from-post-content branch July 5, 2023 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add Clickable Links Feature to Post Captions and Posts
2 participants