How can we modify the function show(question, answer) to handle single quotes?
function updateText(post)
{
let newQuestion = post.question.replace(/'/g,'\\'');
let newAnswer = post.answer.replace(/'/g,'\\'');
document.getElementById("question").innerHTML = newQuestion;
document.getElementById("answer").innerHTML = newAnswer;
}