title: How do I slice text come from CKeditor?
body: <p>My website have post overview and post detail page. In post overview <em>body</em> show only 100 characters. There, I allows to enter html tag from text editor for <em>body</em> field. When I slice <em>body</em> for 100 characters. It causes unwanted errors.</p>
  <p>Example: <em>body</em> would be like this.</p>
  <pre><code>&lt;h2&gt;What is Lorem Ipsum?&lt;/h2&gt;
  
  &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;
  </code></pre>
  <p>Then I slice for 100 characters.</p>
  <pre><code>&lt;h2&gt;What is Lorem Ipsum?&lt;/h2&gt;
      
  &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries,
  </code></pre>
  <p>Result would be like this and missing <em>p</em> close tag. It will cause error.</p>
  <p>How can I fix this issue?</p>