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.
source
share