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

Script tag in between the p tag text

1 Answer 34 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Neha
Top achievements
Rank 1
Neha asked on 09 Oct 2014, 08:43 AM
Hello All,

I have using the Telerik Rad Editor in my CMS so when I add the script tag in middle of the text then it will remove the all the text after the script tag .

For Example :

this is my text in the editor
<p> Hello Telerik Editor Admin</p>
and now when i added the script tag in middle of the text like <p> Hello <script type="text/javascript" src="demo"></script> Telerik Editor Admin</p> tyhen the result will be converted into " <p> Hello <script type="text/javascript" src="demo"></script> "

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 09 Oct 2014, 02:59 PM
Hi Neha,

Content filtering in the editor's content is achievable by implementing Custom Content Filters.

Stripping of any content should be implemented in the exposed methods of the filters using JavaScript Regular expressions.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Neha
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or