title: How to get value from script's outer html
body: <p>I have an outer HTML from a script and I need to get a list of cities from inside it.</p>
  
  <p>I've been trying to get it by recovering the script as HTML with this:</p>
  
  <pre><code>Document citiesHTML = Jsoup.parse(driver.findElement(By.xpath("/html/body/section/script")).getAttribute("outerHTML"));
  </code></pre>
  
  <p>The return from  that line is:</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
    &lt;script&gt;
        NCM.Registry.add('PreHomeStatic', 'PreHome_1485892226002', {
          backgroundColor: '#f1f1f1',
          backgroundImage: '',
          subscriberUrl: '/cliente',
          notSubscriberUrl: '/home', 
          defaultCityName: "sao_paulo",
          defaultCityId: '1366122212339',
          cityNotFoundMessage: 'Os serviços NET não estão disponíveis para sua cidade TEST',
          cityPlaceholder: 'Digite Sua Cidade',
          subscriberLabel: 'Já é &lt;b&gt;cliente NET?&lt;/b&gt;',
          footerNote: 'Rodap&amp;eacute;',
          cities: [{"id_wcs":"1374010568098","id":"almirante_tamandare","value":"Almirante Tamandaré","tokens":["almirante","tamandare","Almirante","Tamandaré"]},{"id_wcs":"1374019924528","id":"alvorada","value":"Alvorada"...
  </code></pre>
  
  <p>I need to get that "<code>cities</code>" array.</p>