Skip to content
Advertisement

Tag: xhtml

How to abbreviate HTML with Java?

A user enters text as HTML in a form, for example: I want to be able to output only a part of the string ( for example the first 20 characters ) without breaking the HTML structure of the user’s input. In this case: which renders as Is there a Java library able to do this, or a simple method

Advertisement