Questions tagged [autolink]

103 questions
2
votes
2 answers

Auto link function not working properly

I created a PHP function that will automatically turn URLs into links, link Twitter @reply usernames to its Twitter profile, and turn email addresses into links with the mailto protocol. Here is the script: function autolink($a, $b){ $e =…
Shawn31313
  • 5,978
  • 4
  • 38
  • 80
1
vote
1 answer

How to exclude certain numbers from autolinking within Android TextView

I've got a TextView displaying large text in my Android app. The text contains some phone numbers but also some other numbers. The TextView's autoLink attribute is set to ALL. At the moment every number that somehow looks like a phone number get's…
Flo
  • 27,355
  • 15
  • 87
  • 125
1
vote
1 answer

RN 0.69 >= Command 'npx react-native-asset' is not working

I have everything set up properly, my fonts that I am trying to link are in /assets/fonts/ and my react-native-config.js file is in the root directory. It looks like this... module.exports = { project: { ios:{}, android:{} …
user18899735
1
vote
2 answers

How to show a snakbar with Lottie animation in start from a recycler view adapter

I am making a chat app and I want to add a feature like telegram to copy links ,phone numbers and etc.. from long clicking on an auto link.I used this library to add long click listeners on a auto link.I implemented it successfully.But when I do…
Sambhav Khandelwal
  • 3,585
  • 2
  • 7
  • 38
1
vote
1 answer

Now that React Native has auto-linking, do we still need to use `react-native unlink` to unlink?

Now that React Native includes auto-linking, we no longer have to use react-native link. If we want to remove a library, we do npm uninstall , but do we still have to do react-native unlink as before, or how do we remove the code added to…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
1
vote
1 answer

Preg_replace - regular expression - PHP "autolink"

I have a piece of code that turn single words or phrases into clickable internal links from a given list. Code is supposed to do this action only if the word or phrase is not linked yet. It is working very great actually except for one point: Code…
Felipe Lima
  • 443
  • 1
  • 10
  • 19
1
vote
1 answer

TinyMCE links plugin doesn't render anchor links in the content

I use links plugin for TinyMCE text editor. When I insert link it saves as an anchor link. When the page is refreshed the link is showed as plain text in paragraph tag. I want the link to be showed as tag so it can be clickable. I have used link…
Andra Zeberga
  • 207
  • 4
  • 14
1
vote
1 answer

Safe way to show only link from user post

I'm trying to permit to users to post links in their posts. I use auto_link gem. Is it safe in this way from xss and other attacks? def show_content(content_with_links) auto_link (sanitize content_with_links.join(" "), tags: %w(a)) end
Mr McDonald
  • 453
  • 7
  • 16
1
vote
1 answer

Extract phone number from TextView text

I have a TextView with following words: Google LLC is an 123 American multinational technology 456 company that specializes in Internet-related services and products. These include online advertising technologies, search, cloud computing, software,…
luke lin
  • 51
  • 4
1
vote
0 answers

Android TextView elipsize end not working together with autolink

The ellipsize property of the TextView is no longer working after setting autoLink="all". My code for the TextView is:
Vlad
  • 988
  • 12
  • 18
1
vote
1 answer

Android studious autoLink = map not working with Latvian addresses

So I'm making business card for one local bar and I have run into problem with autoLink. For some reason, map autoLink does not work with Latvian addresses. I tested same approach with US address (copied the formatting google gave me) and it worked…
Sandra
  • 11
  • 1
1
vote
1 answer

Android: android:autoLink=“web” does not support query parameters after domains

I have a TextView with autoLink set as But when I set a text with…
1
vote
3 answers

AutoLink with hyperLink android

I have a textview which can contain links like https://www.google.com and hyper links with anchor tag Google Now, I have added the below properties on this textview. Linkify.addLinks(textview,…
Prithniraj Nicyone
  • 5,021
  • 13
  • 52
  • 78
1
vote
2 answers

Autolink web on TextView has wrong result

I'm using a TextView component in ListView. Sometimes i have a links on my text in TextView and i want to open browser by clicking on them. All links in my text have a tag: This is an example of my text. This is link For that purposes i…
Yuriy Kolbasinskiy
  • 3,791
  • 3
  • 16
  • 33
1
vote
1 answer

Rails 4 auto_link: (undefined method `unpack' for nil:NilClass)

I'm using the rails_autolink gem and I'm getting this: ActionView::Template::Error (undefined method `unpack' for nil:NilClass) For this line: <%= auto_link(@job.apply) %>
Matheus Lima
  • 2,103
  • 3
  • 31
  • 49