I have an HTML with a javascript as below.
<script type="text/javascript">
if (mnt) {
event.update();
} else {
event.delete();;
}
cf.lmt('45000', '1131452100000', '');</script>
How do I use JSoup to parser this script tag and get the value ‘1131452100000’ which is present in the last line of the script.(which is nothing but an argument). any inputs are appreciated.
You can’t use JSoup. It’s an HTML parser not a Javascript parser. Try Rhino. You should have
javax.scriptavailable.