Radeditor adding g tags to content

4 posts, 1 answers
  1. Jamie
    Jamie avatar
    20 posts
    Member since:
    Aug 2012

    Posted 16 May Link to this post

    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.
  2. Jamie
    Jamie avatar
    20 posts
    Member since:
    Aug 2012

    Posted 16 May in reply to Jamie Link to this post

    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);

    }

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 18 May Link to this post

    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.
  5. Jamie
    Jamie avatar
    20 posts
    Member since:
    Aug 2012

    Posted 31 May in reply to Ianko Link to this post

    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.

    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!

Back to Top