Character \ appearing before ‘ after saving a settings page

It’s a PHP issue. The character ' is being escaped so that it can be safely in various places, not least of which is the database. That’s why your ' look like \'.

You can use PHP’s stripslashes() function to clean it up, or (if it’s an array you need to clean up) WordPress’s stripslashes_deep() function.