Hi all,
can any one pls tell me how to find @ and # handler in a given HTML content using typescript
ex:
the above content is created by @abc
in above HTML content i have used @ symbol ,i need to check @ and # symbole is available or not
the above content is created by @abc
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Jan 20, 2021, 10:17 AM
Harshal LimayePosted Jan 20, 2021, 9:02 AM
Jenith ThakkarPosted Jul 16, 2020, 3:52 AM
https://api.jquery.com/contains-selector/
Please check this link for :contains selector you can check your string this way
$( "p:contains('@')" ) with if condition