I'm trying to embed Gists from Github that are submitted by users and I am struggling to strip out the portions that I don't need or won't store in my database.
The input looks like:
<script src="https://gist.github.com/user/513968a108093aaad5d8.js">
</script>
And the portion that I need is the user/513968a108093aaad5d8.js part.
The site uses HTML, PHP, and JavaScript/JQuery