아래 스크립트에서 생성하는 출력의 유효성을 검사하려고합니다. 이 정보는 내가 W3 검사기를 사용할 때 그러나 나는 다음과 같은자바 스크립트에서 URL 정보 유효성 확인
&가 문자 참조를 시작하지 않은 수 (인 & 예를 &에 대해) 제대로 인코딩 된 모든 정보가 프록시를 통해 구문 분석되고있다. (& 아마 가 &으로 탈출되어 있어야합니다.) ... : V = pgALxO5r7_0 & 기능 //www.youtube.com/watch = youtube_gdata_player " 클래스 ="WA ...
나는 시도했지만에있다 프록시와 출력간에 무엇이 잘못되었는지 알아내는 것은 성공하지 못합니다. 어떤 도움을 주시면 감사하겠습니다. 나는 문제가 주위
SRC 생각 : (. $ (이) .find ('링크') 텍스트()) 탈출,
전체 소스 :
<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>