Open holtzermann17 opened 11 years ago
My obligatory "don't parse XML with regexes or you WILL face bugs" comment.
Right way to implement this:
Is there a specification of what, how and when you're summarizing? I am not familiar with the feature. If it is a search-related feature I am guessing it is distributed and documented together with the Search module?
Browsing in Chromium e.g. on this page: http://planetmath.org/search/site/Sierpi%C5%84ski%20gasket
Reveals some errors with the truncation:
In particular,
<annotation id="p1.1.m5.1b" encoding="application/x-tex"...</annotation>
is just wrong -- it's a bit surprising that Firefox figures out how to handle this.I think I've fixed this in the code on PM - instead of just searching for the final
`, it will search for the final
>`. I haven't pushed this b/c I have a lot of work to do to merge everything, but I'll get to that soon.