title: Javascript remove HTML from Object Values
body: <p>I have an array of objects and some of those object values contain HTML tags that I need to remove.</p>
  
  <p>I tried looping over it and then using the jQuery function <code>unwrap()</code> on the element but I received an error that <code>unwrap</code> wasn't a function.</p>
  
  <pre><code>var tempData = w2ui.grid.records;
  
  // Modify our tempData records to remove HTML
  $.each(tempData, function(key, value) {
      value.unwrap('a');
  });
  </code></pre>
  
  <p>My structure is as follows:</p>
  
  <pre><code>Array [ 
      Object,
      Object,
      Object
  ]
  </code></pre>
  
  <hr>
  
  <p>Example of the object/properties:</p>
  
  <pre><code>Object = {
      Name: 'Bob',
      email: 'bob@gmail.com'
      website: '&lt;a href="http://www.example.com"&gt;Example.com&lt;/a&gt;'
  }
  </code></pre>
  
  <p>Desired Output after modifying object:</p>
  
  <pre><code>Object = {
      Name: 'Bob',
      email: 'bob@gmail.com'
      website: 'Example.com'
  }
  </code></pre>
  
  <p>Here is a quick example fiddle I started: <a href="https://jsfiddle.net/zcwk1kw6/" rel="nofollow noreferrer">https://jsfiddle.net/zcwk1kw6/</a></p>
  
  <p>The example shows a single value containing HTML but my end goal is to remove all HTML from any value, not targeting a specific property.</p>
  
  <p>Whats the best way to approach this?</p>