Putting HTML from outside sources into my blog

I've read that putting HTML/JAVASCRIPT codes from 3rd parties sites that are not integrated with (eg Paypal, Flickr,Amazon...) into my blog enables them to truck and hack my blog .
Sometimes I have to put html/javascript codes from 3rd parties sites because these codes are useful.
Please guys tell me if there's a way out there that let me know if the code from 3rd parties sites are risky or not?
Thank you in advance
My regards

from HTML & Website Design http://ift.tt/1Ua8Oxx
via IFTTT
Previous
Next Post »
Thanks for your comment