title: swift soup parsing with evaluateJavaScript in webview
body: <p>I want to get a video URL from HTML -:</p>
  <pre><code>         &lt;div class=&quot;_53mw&quot; data-store=&quot;{&amp;quot;videoID&amp;quot;:&amp;quot;607125377233758&amp;quot;,&amp;quot;playerFormat&amp;quot;:&amp;quot;inline&amp;quot;,&amp;quot;playerOrigin&amp;quot;:&amp;quot;permalink&amp;quot;,&amp;quot;external_log_id&amp;quot;:null,&amp;quot;external_log_type&amp;quot;:null,&amp;quot;rootID&amp;quot;:607125377233758,&amp;quot;playerSuborigin&amp;quot;:&amp;quot;misc&amp;quot;,&amp;quot;useOzLive&amp;quot;:false,&amp;quot;playbackIsLiveStreaming&amp;quot;:false,&amp;quot;canUseOffline&amp;quot;:null,&amp;quot;playOnClick&amp;quot;:true,&amp;quot;videoDebuggerEnabled&amp;quot;:false,&amp;quot;videoViewabilityLoggingEnabled&amp;quot;:false,&amp;quot;videoViewabilityLoggingPollingRate&amp;quot;:-1,&amp;quot;videoScrollUseLowThrottleRate&amp;quot;:true,&amp;quot;playInFullScreen&amp;quot;:false,&amp;quot;type&amp;quot;:&amp;quot;video&amp;quot;,&amp;quot;src&amp;quot;:&amp;quot;*https:\/\/video.fdel10-1.fna.fbcdn.net\/v\/t42.1790-2\/271574467_153621553687266_1119427332980623121_n.mp4?_nc_cat=106&amp;amp;ccb=1-5&amp;amp;_nc_sid=985c63&amp;amp;efg=eyJ2ZW5jb2RlX3RhZyI6InN2ZV9zZCJ9&amp;amp;_nc_ohc=HuufVpgJRnEAX8_AEix&amp;amp;_nc_rml=0&amp;amp;_nc_ht=video.fdel10-1.fna&amp;amp;oh=00_AT8eUqTIMXRHidmafowZmL7-o4k2JG0FqA4QbFKNINiQ8Q&amp;amp;oe=61DD4DFB&amp;quot;,&amp;quot;width&amp;quot;:414,&amp;quot;height&amp;quot;:621*,&amp;quot;trackingNodes&amp;quot;:&amp;quot;FH-R&amp;quot;,&amp;quot;downloadResources&amp;quot;:null,&amp;quot;subtitlesSrc&amp;quot;:null,&amp;quot;spherical&amp;quot;:false,&amp;quot;sphericalParams&amp;quot;:null,&amp;quot;defaultQuality&amp;quot;:null,&amp;quot;availableQualities&amp;quot;:null,&amp;quot;playStartSec&amp;quot;:null,&amp;quot;playEndSec&amp;quot;:null,&amp;quot;playMuted&amp;quot;:null,&amp;quot;disableVideoControls&amp;quot;:false,&amp;quot;loop&amp;quot;:true,&amp;quot;numOfLoops&amp;quot;:13,&amp;quot;shouldPlayInline&amp;quot;:true,&amp;quot;dashManifest&amp;quot;:null,&amp;quot;isAdsPreview&amp;quot;:false,&amp;quot;iframeEmbedReferrer&amp;quot;:null,&amp;quot;adClientToken&amp;quot;:null,&amp;quot;audioOnlyVideoSrc&amp;quot;:null,&amp;quot;audioOnlyEnabled&amp;quot;:false,&amp;quot;permalinkShareID&amp;quot;:null,&amp;quot;feedPosition&amp;quot;:null,&amp;quot;chainDepth&amp;quot;:null,&amp;quot;videoURL&amp;quot;:&amp;quot;https:\/\/www.facebook.com\/100069898026392\/videos\/607125377233758\/&amp;quot;,&amp;quot;disableLogging&amp;quot;:false}&quot; data-sigil=&quot;inlineVideo&quot;&gt;
            
  </code></pre>
  <p>i am doing this-:</p>
  <pre><code>   do {
                  let doc: Document = try SwiftSoup.parseBodyFragment(html)
                  let headerTitle = try doc.title()
  
                  // my body
                  let body = doc.body()
                  // elements to remove, in this case images
                  let undesiredElements: Elements? = try body?.select(&quot;a&quot;)
  
                  //remove
                  try! undesiredElements?.remove()
                 // print(&quot;Header title: \(headerTitle)&quot;)
                  print(&quot;Header body: \(body)&quot;)
              } 
           
  </code></pre>
  <p>How to do this with swift soup</p>