下記のスクリプトが生成する出力を検証しようとしています。情報は私がW3バリデータを使用する場合しかし、私は、次のJavaScriptでURL情報を確認する
&を取得(&ている例&のために)正しくエンコードされたすべての情報を持っているプロキシ経由で解析されていることは、文字参照を開始しませんでした。私はこれにしようとしている//www.youtube.com/watch V = pgALxO5r7_0 &機能= youtube_gdata_player " クラス=" WA ...
:?... (。&はおそらく &のようにエスケープされている必要があります)プロキシと出力の間で何が間違っているのかを理解することはできません。どんな助けもありがとう。私は
<script type="text/javascript">
$(document).ready(function() {
projekktor('#player_a', {
useYTIframeAPI: false,
width: 730,
height: 452,
plugin_display: {
logoImage: "includes/images/transIcon.png"
},
controls: true,
playlist: [{0:{src:'includes/proxy.php?url=http://gdata.youtube.com/feeds/base/users/SkiBsandDXL/uploads?alt=rss&v=2&orderby=published', type:"text/xml"}}],
reelParser: function(xmlDocument) {
var result = {};
var regMatch = new RegExp("http:[^ ,]+\.jpg");
result['playlist'] = [];
$(xmlDocument).find("item").each(function() {
try {
result['playlist'].push({
0:{
src: escape($(this).find('link').text()),
type: 'video/youtube'
},
config: {
poster: regMatch.exec(unescape($(this).find('description').text())),
title: $(this).find('title').text(),
desc: $(this).find('description').text()
}
});
} catch(e){}
});
return result;
}
});
});
</script>