I want an array of urls from an html string, although only from the following tags:
- link href="http://example.com/foo.css"
- script src="http://example.com/foo.js"
I would like these urls so I can put them into an appcache manifest file. I use an appcache manifest builder, but it only analyzes static files that I am serving locally. It is working great, but it doesn't automatically include the external static js/css files that I am including in my html.
I would like to be able to parse the html string using node.js.