You are reading a single comment by @Arducius and its replies. Click here to read the full conversation.
  • Yeah I thought you'd be sanitising the input, but wouldn't it be nicer to HTML encode "special" characters like that? Not a massive issue though tbh, the whole comment was there when I edited the post.

  • If I did that too early then you could never put HTML into a comment, and if I do it too late then I break all of the HTML that is in a comment.

    When I currently do it is the best time, but has the edge case that including both > and < (in the other order) may break the post. But then... I show you your post immediately after you make it, so figured that this edge case is minor, and you're shown when it occurs and can edit accordingly.

About

Avatar for Arducius @Arducius started