HTML output using javascript

I have a big piece of HTML. To match a specific container, I crop HTML (not just text), say 200 characters. Obviously, some of the tags will remain unclosed in this case. Is there a way, except that I myself write a cleaner to clear this cropped fragment without server involvement? There are online services available with public APIs that I can use from JS.

+5
source share
2 answers

You can try the cutter.js library , it is quite new, so I have not heard much about it, but it seems to look for how much cropping goes, check my fiddle by checking it: http://jsfiddle.net/JKirchartz/jwL8v/

+2

All Articles