title: Html Read More code
body: <p>I am creating <strong>Read More</strong> Code in Html.</p>
  
  <p>Everything is working fine. but when I click on <strong>Read More</strong> . then it displays data along with <strong>text-ellipsis</strong> property ie. <strong>...*</strong>. I want <strong>Read More</strong> text to be center in next line which I am getting but it displays <strong>...</strong> also.</p>
  
  <p><a href="https://i.stack.imgur.com/RrMHN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RrMHN.png" alt="output I want"></a></p>
  
  <p><a href="https://i.stack.imgur.com/RHgeq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RHgeq.png" alt="Output I m getting."></a></p>
  
  <p>There is three dots <strong><em>...</em></strong> after <strong>mauris</strong> text.</p>
  
  <p>How can I remove that.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>   $(document).ready(function() {
          var showChar = 400;
          var ellipsestext = "...";
          var moretext = "Read More";
          var lesstext = "Read Less";
          $('.more').each(function() {
              var content = $(this).html();
  
              if(content.length &gt; showChar) {
  
                  var c = content.substr(0, showChar);
                  var h = content.substr(showChar-1, content.length - showChar);
  
                  var html = c + '&lt;span class="moreelipses"&gt;'+ellipsestext+'&lt;/span&gt;&amp;nbsp;&lt;span class="morecontent"&gt;&lt;span&gt;' + h + '&lt;/span&gt;&lt;div class="text-center margin_top_10"&gt;&lt;a href="" class="morelink"&gt;'+moretext+'&lt;/a&gt;&lt;/div&gt;&lt;/span&gt;';
  
                  $(this).html(html);
              }
  
          });
  
          $(".morelink").click(function(){
              if($(this).hasClass("less")) {
                  $(this).removeClass("less");
                  $(this).html(moretext);
              } else {
                  $(this).addClass("less");
                  $(this).html(lesstext);
              }
              $(this).parent().prev().toggle();
              $(this).prev().toggle();
              return false;
          });
      });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.comment {
    width: 93%;
    margin: 0 auto;
  }
  a.morelink {
    outline: none;
    color: #5bc0de !important;
  }
  .morecontent span {
    display: none;
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"&gt;
  
  &lt;div class="row b-t padding_top_bottom_10"&gt;
  &lt;div class="col-md-12 col-sm-12 col-xs-12 "&gt;
  &lt;div class="comment more font_size_14"&gt; Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Vestibulum laoreet, nunc eget laoreet sagittis,
    quam ligula sodales orci, congue imperdiet eros tortor ac lectus.
    Duis eget nisl orci. Aliquam mattis purus non mauris
    blandit id luctus felis convallis.
    Integer varius egestas vestibulum.
    Nullam a dolor arcu, ac tempor elit. Donec.
    
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Vestibulum laoreet, nunc eget laoreet sagittis,
    quam ligula sodales orci, congue imperdiet eros tortor ac lectus.
    Duis eget nisl orci. Aliquam mattis purus non mauris
    blandit id luctus felis convallis.
    Integer varius egestas vestibulum.
    Nullam a dolor arcu, ac tempor elit. Donec. &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>