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

Radeditor adding g tags to content

3 Answers 85 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jamie
Top achievements
Rank 2
Jamie asked on 16 May 2016, 05:32 PM
I have no idea what a g tag is, but somehow it's getting added to my content when I click save. I attached a screenshot of the HTML view of the editor we are using to show the classes, etc. that are being added. Can someone please help? I'm not sure what to do.

3 Answers, 1 is accepted

Sort by
0
Jamie
Top achievements
Rank 2
answered on 16 May 2016, 06:45 PM

Nevermind, I added the code below and it took care of it. Odd that was getting added in the first place.

if (DescriptionRadEditor.Content.Trim().Length > 0)
{
        string whiteList = "li|b|strong|em|br|ol|p|ul|sup|span|noscript|script|iframe|a|small|ins|del|mark|site|q|h2|h3|h4|div";
        topic.Description = Html.StripTags(DescriptionRadEditor.Content, whiteList);

}

0
Accepted
Ianko
Telerik team
answered on 18 May 2016, 08:15 AM
Hi Jamie,

<g> tags are used in SVG. Possibly, they have appeared  in the content through pasting. Such tags, however, are not generated by RadEditor.

Regards,
Ianko
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Jamie
Top achievements
Rank 2
answered on 31 May 2016, 01:55 PM
[quote]Ianko said:Hi Jamie,

<g> tags are used in SVG. Possibly, they have appeared  in the content through pasting. Such tags, however, are not generated by RadEditor.

Regards,
Ianko
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.

[/quote]

Ok I see. The clients must have been using software to write the content then pasted it in that way. Normally, we tell people to use the copy from Word option in the RadEditor, but not everyone listens. :) Thank you!

Tags
Editor
Asked by
Jamie
Top achievements
Rank 2
Answers by
Jamie
Top achievements
Rank 2
Ianko
Telerik team
Share this question
or