# Cleaning Embed Code

**URL:** <https://forum.kirupa.com/t/cleaning-embed-code/298253>\
**Category:** web dev\
**Created:** [October 15, 2009, 2:59pm UTC](https://forum.kirupa.com/t/cleaning-embed-code/298253 "2009-10-15T14:59:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smoke10010](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@smoke10010](https://forum.kirupa.com/u/smoke10010)\
**Post date:** [October 15, 2009, 2:59pm UTC](https://forum.kirupa.com/t/cleaning-embed-code/298253/1 "2009-10-15T14:59:42Z")

</div>

Hello,

I have embedded videos on my site but a lot of forums are having trouble with it. I need to clean up the embed code if that’s possible. Here’s an example:

\<embed width=“640” height=“480” quality=“high” wmode=“transparent” allowfullscreen=“true” allowscriptaccess=“always” src=“[http://www.website.com/preview.swf?MediaLink=http%3A%2F%2Fwww.domain.com%2Fvideos%2F7098%2FWE1254662401W4ac8a101c07d4.flv&image=http%3A%2F%2Fwww.domain.com%2Fcdn%2Fvideos%2F7098%2Fframe\_front.jpg&playOnStart=false&share=false](http://www.website.com/preview.swf?MediaLink=http%3A%2F%2Fwww.domain.com%2Fvideos%2F7098%2FWE1254662401W4ac8a101c07d4.flv&image=http%3A%2F%2Fwww.domain.com%2Fcdn%2Fvideos%2F7098%2Fframe_front.jpg&playOnStart=false&share=false)” type=“application/x-shockwave-flash” /\>\<br /\>\<div style=“font-size:9px;”\>

I think the main issue is the messy code from the ?MediaLink=

Is it possible to do something like this

preview.swf?video=123456.xml

And then have all the configuration variables such as the MediaLink, image, etc, stored inside the xml file?

Thanks.
