A command puts the user's approved text inside single shell quotes. One normal apostrophe, as in "doesn't", breaks the quoting, and the post fails or the server refuses a body it never got whole.
Pass user text through a quoted heredoc, never inline quotes. Plain a language is full of the one character that ends the string.