Search code examples
javascripthtmltruncate

Javascript truncate HTML text


Does JavaScript have a way of truncating HTML text without all the headaches of matching tags etc etc?

Thank you.


Solution

  • There's nothing built-in javascript. There's a jQuery plugin that you might take a look at.