Welcome Forums Web Site Feedback & Assistance Possible bug rendering less than character

Viewing 1 reply thread
  • Author
    Posts
    • #162195
      Moderator
      Topics: 3
      Replies: 109
      Points: 566
      Helping Hand
      Rank: Major Contributor

      There seems to be an issue with how the forum displays the less than character (<) in proximity to certain other characters such as equal to (=). In particular, when attempting to write this regex string:
      https://gist.github.com/grokk-it/3f6ab7eb619e33a453f1855bafa10a22
      it was reproduced as

      (?<=From: ).*$

      Which, of course, didn’t work properly when the person I was talking to tried to use it.

      I think this is happening because the text entry system converts the keyboard ‘<‘ character into its HTML escape. The escape sequence includes a trailing space which shouldn’t actually be rendered. This appears to happen whether or not the characters are inside the HTML pre tags.

      For testing:
      <=
      >=
      (?<=ABC)

      <=
      >=
      (?<=ABC)
      
      <=
      >=
      (?<=ABC)
      

      https://gist.github.com/grokk-it/afa28ab8891c0d95139a564e8f8b93c6

    • #162266
      js
      Participant
      Topics: 28
      Replies: 750
      Points: 2,087
      Helping Hand
      Rank: Community Hero

      Yep, that’s why you can’t post xml here.

Viewing 1 reply thread
  • The topic ‘Possible bug rendering less than character’ is closed to new replies.