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

How do I get entered text. #325

Open
itsatishay opened this issue Jul 24, 2023 · 1 comment
Open

How do I get entered text. #325

itsatishay opened this issue Jul 24, 2023 · 1 comment

Comments

@itsatishay
Copy link

I wanted to just get the entered text input length. I don't see any function which I can call to extract that

@Bilin-David
Copy link

we can get length of the entered text from the variable where we storing the text by using .length method, but if you want to get length without html tags, i used replace method to remove the tags while checking length
eg: message.replace(/<[^>]*>/g, '').trim().length

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

No branches or pull requests

2 participants