gerby-project / gerby-website

Tag-based webview of LaTeX documents
MIT License
28 stars 22 forks source link

Should we strip HTML for the search table? #77

Closed pbelmans closed 6 years ago

pbelmans commented 6 years ago

Right now searching for span gives way too many results from a user's point of view. We could strip HTML from the text in the search table. Would this be a good idea?

pbelmans commented 6 years ago

Words that might be annoying are: span, class.

chngr commented 6 years ago

I think this would be fine. The only information that could potentially be lost seems to be the tag. But, presumably, tags can be found elsewhere.

For a quick solution, there is the the BeautifulSoup library. Or else there is a direct solution on this StackOverflow question.

pbelmans commented 6 years ago

We'll do this when we get the first person complaining about this. Not adding it to the release milestone for now.

pbelmans commented 6 years ago

I actually implemented this in the Kerodon fork.