title: Get value of string; find this string in content; apply new style to this string thanks to jQuery
body: <p>The answer seems to be simple, but I can't find the solution.</p>
  
  <p>I have a WordPress site. In my right column, I print some meta data. I want to get the text value of some data, then find it in my .entry-content, and apply the new style to this exact string. I can cope with this task by applying the new style to the entire content inside.entry-content, but I can't apply it with a single string (which is in numerous places in the text). </p>
  
  <p>Here is my code below:</p>
  
  <pre><code>jQuery(document).ready(function($) {
  
  var str = $('.rrname').text(); // I've got the value
  $(".entry-content:contains('"+ str +"')").css( "text-decoration", 
  "underline"); // all the content in the div .entry-content now underline
  
  });
  </code></pre>
  
  <p>For instance I have a string with the show name: </p>
  
  <p>Show name: "The Good Doctor"</p>
  
  <p>In my article, this phrase appears numerous times. I want that each time, The Good Doctor to be underline in my entire article inside the div .entry-content. </p>
  
  <p>I've tried this code with no results too:</p>
  
  <pre><code>jQuery(document).ready(function($) {
  
  var str = $('.rrname').text();
  $(".entry-content:contains('"+ str +"')").each(function() {
      $(this).text().css( "text-decoration", "underline");
  });
  
  
  });
  </code></pre>
  
  <p>Thanks for the assistance!</p>