Enter a script block in an editor, and try to get the text of the editor, the script tags of the script block are stripped, but the codes in the tags are still there. Does someone know how to remove the whole block? Thanks.
1 Answer, 1 is accepted
0
Lini
Telerik team
answered on 28 Aug 2009, 08:51 AM
Hi,
We will improve the Text property of the editor in the next official release. For now, you can try enabling the RemoveScripts filter, then re-setting the editor content to remove the scripts and finally getting the .Text property:
RadEditor1.EnableFilter(RemoveScripts);
RadEditor1.Content = RadEditor1.Content;
string text = RadEditor1.Text;