This is a migrated thread and some comments may be shown as answers.

JavaScript Character Count

1 Answer 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Zed
Top achievements
Rank 1
Zed asked on 01 Jul 2009, 01:00 PM
I did a javascript character count using this

var

 

myrex = new RegExp("(^([\\w\\-\\.]){5,}$)", "i");

Unfortunately it always returns false.  When I debug I see a strange character  attached to the end of the args.Value, which the regular expression cannot match.  It is shaped like a  square in the debugger.  What is that and what can I do to disregard it?

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Jul 2009, 02:14 PM
Hi Zed,

The square characters could be due to the indentation client-side filter of the RadEditor. Could you please disable the IndentHTMLContent filter by setting via the codebehind:

RadEditor1.DisableFilter(EditorFilters.IndentHTMLContent);

and see whether these characters still persist. If this does not solve the problem, disable all filters by setting:

RadEditor1.ContentFilters = EditorFilters.None;


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Zed
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or