title: How to use innerhtml function in JSP
body: <p>Hi i am current working on a task in which if the size of characters is more than 200 than it will substring the characters more than 200.if i give a simple text than it is working fine but if i provide any link into it then it consider the tag also like anchor tag etc. i want just to get innerHTML is it poosible in JSp? or there is another alternative way for it here is my code.</p>
  
  <pre><code>&lt;c:set var="finaldescription" value="" scope="page" /&gt;
  &lt;c:set var="description" value="${properties.description}" scope="page"/&gt;
  &lt;c:set var="descriptionLength" value="${fn:length(string1)}" scope="page" /&gt;
  &lt;c:choose&gt;
      &lt;c:when test="${fn:length(description) gt 200}"&gt;
          &lt;c:set var="finaldescription" value="${fn:substring(description, 0, 200)}..." scope="page" /&gt;
      &lt;/c:when&gt;
      &lt;c:otherwise&gt;
          &lt;c:set var="finaldescription" value="${description}" scope="page" /&gt;
      &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  </code></pre>