Git Product home page Git Product logo

Comments (1)

mikesamuel avatar mikesamuel commented on August 16, 2024

I get

<p><span class="application-font-size-14"><span style="color:rgb( 40 , 40 , 40 )"
 class="application-font-name-arial">Lorem ipsum dolor sit amet, adipiscing elit.
 In scelerisque condimentum. </span>Phasellus molestie hendrerit  augue.</span></p><p><span
 class="application-bold application-font-size-14">In eget arcu at fermentum tortor:</span></p><ul
 class="application-ul-disc"><li><span style="color:rgb( 40 , 40 , 40 )" class="application-font-name-arial
 application-font-size-14">Sapien sed fermentum </span></li><li><span style="color:rgb( 40 , 40 , 40 )"
 class="application-font-name-arial application-font-size-14">Tellus consectetur sit amet</span></li><li>
<span style="color:rgb( 40 , 40 , 40 )" class="application-font-name-arial application-font-size-14">Sed
 interdum ligula nec </span></li></ul><ul class="application-ul-disc"><li><br /></li></ul><p><span
 style="color:rgb( 40 , 40 , 40 )" class="application-font-name-arial application-font-size-14">Vestibulum
 ultricies, arcu neque euismod ipsum, id tempor sem ante quis sem.</span></p><p><span>Donec mi
 ipsum, pretium sit amet interdum quis, egestas et justo.</span></p>

which, when pretty-printed looks like

<p>
  <span class="application-font-size-14">
    <span style="color:rgb( 40 , 40 , 40 )" class="application-font-name-arial">
      Lorem ipsum dolor sit amet, adipiscing elit.
     In scelerisque condimentum.
    </span>Phasellus molestie hendrerit  augue.
  </span>
</p>
<p>
  <spas class="application-bold application-font-size-14">
    In eget arcu at fermentum tortor:
  </span>
</p>
<ul class="application-ul-disc">
  <li>
    <span style="color:rgb( 40 , 40 , 40 )" class="application-font-name-arial application-font-size-14">
      Sapien sed fermentum
    </span>
  </li>
  <li>
    <span style="color:rgb( 40 , 40 , 40 )" class="application-font-name-arial application-font-size-14">
      Tellus consectetur sit amet
    </span>
  </li>
  <li>
    <span style="color:rgb( 40 , 40 , 40 )" class="application-font-name-arial application-font-size-14">
      Sed interdum ligula nec
    </span>
  </li>
</ul>
<ul class="application-ul-disc">
  <li>
    <br />
  </li>
</ul>
<p>
  <span style="color:rgb( 40 , 40 , 40 )" class="application-font-name-arial application-font-size-14">
    Vestibulum ultricies, arcu neque euismod ipsum, id tempor sem ante quis sem.
  </span>
</p>
<p>
  <span>
    Donec mi ipsum, pretium sit amet interdum quis, egestas et justo.
  </span>
</p>

All the <li> tags look well formed and there is no &gt; in the output.

from java-html-sanitizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.