title: How to manipulate text of HTML li and append back in main li
body: <p>I am trying to replace underscores with some string in  list items but it's not changing in list item's original text. here is my code.</p>
  
  <pre><code>$.each($.parseHTML(customFormSentenceView), function (i, item) {
              if ($.parseHTML(customFormSentenceView)[i].outerText.indexOf('_') &gt; -1) {
                  var startindex = $.parseHTML(customFormSentenceView)[i].outerText.indexOf("_");
                  var lastindex = $.parseHTML(customFormSentenceView)[i].outerText.lastIndexOf("_");
                  var len = $.parseHTML(customFormSentenceView)[i].outerText.length;
                  var initstring = $.parseHTML(customFormSentenceView)[i].outerText.substring(0, startindex);
                  var endstring = $.parseHTML(customFormSentenceView)[i].outerText.substring(lastindex + 1, len);
                  $.parseHTML(customFormSentenceView)[i].outerText = initstring +  endstring;
  
              }
          });
  </code></pre>