Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Thomas Hansen 134 posts 350 karma points
    Jul 26, 2018 @ 12:19
    Thomas Hansen

    Rich text editor - adds <span> arround text

    When I render text from the RTE it adds a span around the text? So it looks like this:


    I'm rendering it like this:


    Anyone that now why?

  • Jan Skovgaard 11245 posts 23440 karma points MVP 6x admin c-trib
    Jul 26, 2018 @ 12:40
    Jan Skovgaard

    Hi Thomas

    Not quite sure why it happens but it seems to be a known issue - There is an issue about it here at least and it does not seem like it has been fixed yet though.

    Even though it's really annoying to have markup rendered that you did not inject yourself this should be fairly harmless since it won't mess up any styling unless you use some very broad targeting selectors of course :)


  • Thomas Hansen 134 posts 350 karma points
    Jul 26, 2018 @ 12:47
    Thomas Hansen

    Hi Jan

    Thanks :) !

    Weird that it hasn't been fixed yet after two years. I will try to look for a fix.

Please Sign in or register to post replies

Write your reply to: