Site Feedback Thread

5 posts

Quotes within quotes

Back to Forum: Site Feedback
  • User profile image
    GoddersUK

    This is a quote.

    [quote]

    This is a quote within a quote.

    More of the original quote.

    [/quote]

    As you can see, it doesn't work.

  • User profile image
    Geoffreyk

    Yep, seems to be a problem. 

    I have found a potential flaw in my boss, Duncan's code and have made him aware of it. 

    He will be looking into it Smiley

  • User profile image
    GoddersUK

    Thanks Smiley

  • User profile image
    Duncanma

    @GoddersUK: a flaw is a bit of an exaggeration.. we just don't handle quotes within quotes, in fact I believe we explicitly strip them out when quoting in the UI.

    At the moment, the process to convert from the [ ] (bbcode style) tags to HTML is regex based, so we are really just looking for text between a starting and ending quote ... to handle nested tags, we'd have to move to parsing the text which isn't the simplest process. I have it on my plate though so we'll see if I end up getting it done

  • User profile image
    GoddersUK

    , Duncanma wrote

    in fact I believe we explicitly strip them out when quoting in the UI.

    tbh that's fair enough mostly, Posts could get very long otherwise. It just comes in handy occasionally, although we can live without it Smiley

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.