Inference returning content containing HTML Comments tags are unescaped and silently hang

Hey folks,

HTML Commenting is not correctly escaped in both Prompt Edits and Chats causing them both to silently hang when returning this type of content.

Steps to replicate

  1. Select a line of HTML including an HTML Comment
  2. Cmd+K
  3. “Escape this line of text”
    this request never resolves / silently hangs