seoscribe / jsearch

jsearch: a drop-in library for client-side search if you don't have a back-end.
BSD 3-Clause Clear License
2 stars 1 forks source link

add the ability to take sitemap.xml, rss feed or atom feed #6

Closed loisatwood closed 7 years ago

wnda commented 7 years ago

Use XHTML's mime type for DOMParser, i.e.

parseFromString('<div>example</div>','application/xhtml+xml');
wnda commented 7 years ago

So handle HTML, XHTML and XML separately with a second ternary expression and I'll merge. It's good stuff.