How to get a Script Tag's innerHTML

前端 未结 5 1777
梦如初夏
梦如初夏 2021-01-19 20:02

Alright... I\'ve been searching for an hour now... How does one get the innerHTML of a script tag? Here is what I\'ve been working on...



        
5条回答
  •  南方客
    南方客 (楼主)
    2021-01-19 20:35

    You can Use Html Parsers:

    jsoup » jsoup: Java HTML Parser jsoup: Java HTML Parser

    jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods.

    refer this: http://jsoup.org/

提交回复
热议问题