Mentor Themeforest Plugin Errors

Dear Experts,
I have checked my WordPress theme with themecheck plugin.
Themecheck plugin shows no errors.
And now I have checked it using Mentor Themeforest plugin.
It shows some errors, like,

  1. All dynamic data must be correctly escaped for the context where it is rendered. at file footer.php, line 46: <?php echo $google_analytics; ?>
  2. All dynamic data must be correctly escaped for the context where it is rendered. at file footer.php, line 49: <?php echo $ code_before_body; ?>
    The first one is google analytical code coming dynamically from Redux Framwork. This is JavaScript within script tag. How can I escape this code. May I use esc_html()?

In the second variable there can be html and JavaScript code(within script tag) coming from Redux Framework dynamically. How can I escape this? May I use esc_html()?

My third query is that if these errors from Mentor Themeforest plugin are considerable for themeforest approval or not?

Thanks in advance. :slight_smile:

Note: I use esc_html for the both and the plugin shows no error.
Mentor Themeforest Plugin