Click here to Skip to main content
15,846,038 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi ,

I am using ckeditor ,

and now my requirment is like the textbox should atlest contains 2 character ,

but as ckeditor comes in the picture , when i check text property of this textbox , it gives me some html elements as well , like , ,

etc .. now i want to ignore all this elements and just want to check the actual contents length

Posted

1 solution

I think you can use Regex for this. Read here - Remove HTML tags[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900