Putting the shortcode in the text editor is what I already do. 😉
Not sure that to put the dust under the carpet (WP_DEBUG to false) is the best way to correct the issue.
Despite this two notices, page’s display is broken…
Could you, please, tell why simple cote ‘ are changed by “? And how to solve it?