tern-openui5 icon indicating copy to clipboard operation
tern-openui5 copied to clipboard

Crawler cannot handle non-escaped angle brackets

Open TimoStaudinger opened this issue 8 years ago • 0 comments

The webcrawler currently breaks on a documentation page in which > and < characters weren’t encoded properly. Since the crawling is done using Cheerio, this has to be fixed by either escaping the OpenUI5 docs properly (preferred), or by making Cheerio more forgiving.

@jpenninkhof has submitted this to the OpenUI5 bugtracker: SAP/openui5#875 Thanks for that!

A quick search of the crawler's output showed two instances that trip cheerio:

  • https://openui5.hana.ondemand.com/#docs/api/symbols/sap.ui.core.HTML.html#getContent
    ... content (e.g. setContent("<div/><div/>")), but this is not ...
  • https://openui5.hana.ondemand.com/docs/api/symbols/sap.ui.table.Column.html#getFilterValue
    ... string, as shown here: > 50 < 100 >= 150 <= 200 = 250 != 300 something ...

TimoStaudinger avatar Feb 26 '16 11:02 TimoStaudinger