Description showing in lable componate. And if have a link in description, so I want to set this link clickable only for specific Text (example link :https//Google.com)
I want the text to be in HTML format when the user posts the description. This means that if there is a link in the text, it should be automatically detected and converted to html format and after store html text in fierbase.
And this html file should be shown in Web viewer … So that if there is a link in the description, it will be clickable
If HTML is not working properly then you can try this:
You can use a seperate label just for link and show it just below the description.
Set it as clickable and text colour to blue or pink to make it looks like a link.
This label can be optional, if user has a link then he can provide it separately and you have to make a condition if link label text is not empty then make it visible otherwise keep it invisible.
HTML ignores things which cannot be recognized by it as text.
For example if you add
Hi
As it is not a html tag it ignores and gives only the text but if you give the HTML Tag or element or attributes like <a href="https://www.youtube.com">YouTube</a>
It functions that unless preformatted.
The problem is how to detect a link in a text which contains both non-html and links text, something like that, your explanation above would
t work as you would’t always the person to provide a youtube link all the time