title: get string inside the src attribute not the absolute path
body: <p>I have a video tag like this:</p>
  <pre><code>&lt;video id=&quot;video-upload-preview&quot; controls=&quot;&quot; src=&quot;/admin/session/trimed/trimmed.mp4&quot;&gt;&lt;/video&gt;
  </code></pre>
  <p>and I want the string inside <code>src</code> so I did this:</p>
  <pre><code>document.getElementById('video-upload-preview').src
  </code></pre>
  <p>But the result is something else, it's the absolute path to the source not the actual string:</p>
  <blockquote>
  <p>'https://www.example.com/admin/session/trimed/trimmed.mp4'</p>
  </blockquote>
  <p>Is there any way to get only the string inside <code>src</code> attribute?</p>
  <p>The desired result would be:</p>
  <blockquote>
  <p>/admin/session/trimed/trimmed.mp4</p>
  </blockquote>