开发者

(Javascript- HTML Parser) Can be html parsed with javascript without server languages?

开发者 https://www.devze.com 2023-01-05 20:51 出处:网络
Can html be pars开发者_高级运维ed with javascript without server languages? my webpage should do :

Can html be pars开发者_高级运维ed with javascript without server languages?

my webpage should do :

parsing of all images from the url that user enter.

Can I do it only with Javascript if yes with library functions that exist doing that?

Thanks,


Can be html parsed with javascript without server languages?

Yes . HTML can be parsed by javascript .

However , you can not make a request to another domain from the client side . The Same origin policy would prevent you from doing that . If you want to parse a HTML page that comes from some other domain then you need to do that on the server side .

0

精彩评论

暂无评论...
验证码 换一张
取 消