I'm looking for solution to shortening paragraph in HTML
Let's say I have a paragraph
<p>This is some text</p>
Now what I want to know is how can I make this paragraph show less lines. For example instead of showing full paragraph it shows only first 4 characters which results in
<p>This</p>
This
`. But I assume you're trying to do something like this in JavaScript or server-side rendering instead, in which case we'd need more information about what you've tried so far and what isn't working. If this `p` tag won't contain any other HTML tags, you could use https://stackoverflow.com/questions/1301512/truncate-a-string-straight-javascript for example. – WOUNDEDStevenJones Feb 03 '23 at 20:31