It appears that this code only functions properly when using <
and >
instead of the regular characters. How can I adjust it so that it correctly links to the video owner's channel?
<script type="text/javascript">
function youtubeFeedCallback(json){
document.write("<a href='youtube.com/user/"+json["data"]["uploader"]+"'>"+json["data"]["uploader"]+"</a>");
}
</script>
<script type="text/javascript" src="http://gdata.youtube.com/feeds/api/videos/4TSJhIZmL0A?v=2&alt=jsonc&callback=youtubeFeedCallback&prettyprint=true"></script>