title: Issue with replacing css/html code with wp hook
body: <p>I have issue to replace some html content.
  On WP admin plugin page side I want to apply like this code in plugin default .php (like function.php):</p>
  <pre><code>function wpb_hook_javascript() {
      ?&gt;
          &lt;script&gt;
  jQuery(function($){
  $('.nameofclass').html('&lt;p&gt;test&lt;/p&gt;');
  });
          &lt;/script&gt;
      &lt;?php
  }
  add_action('wp_head', 'wpb_hook_javascript');
  </code></pre>
  <p>I test only<code>&lt;script&gt;&lt;/script&gt;</code> on fronted site and works ok, but I want to display some changes in specific css in wp admin dashboard on some plugin page, but that not work good with above wp hook.</p>