I made a HttpClient call to a server and it responded with a response of HTML. In which I see something like
<html lang="en"><head>
<script type="text/javascript"><!--
var testElement = "Y4Yyn%2bZXWcmpz2TadkTlyrc8yGI%3d"; var timeout_redirect_url = "/career?company=asd&loginFlowRequired=true&lang=en_US";
//--></script>
</html>
I have saved all the HTML content to a String.
Now I have all the HTML in
String res;
res contains all the HTML.
I need to get that testElement value. The response which I got is a string. How can I get the testElement value?
I'm trying to parse for jsoup to get the value but got struck. Can anyone help me out please. Thanks in advance.