구글 RSS(곱슬님이 올려주신플러그인질문요/.) 정보
구글 RSS(곱슬님이 올려주신플러그인질문요/.)본문
"히틀러 두개골 조각은 타인 것"<美연구진> - 연합뉴스
정운찬 총리임명안 국회 통과 - 경향신문
"추락한 경비행기 승인 없이 운항" - YTN
'미녀보살' 박예진 "실제로 점봤더니...영화 잘 될 것" - 조선일보
폴란스키, 30년 전 성추행 혐의로 체포 - 매일경제
쇼와이브로 가입하면..노트북이 만원 ! - 아시아경제
챔피언십 2위로 페덱스컵 종합우승…우즈, 1000만 달러 보너스 - 경향신문
이런식으로 apos<<요놈만 계속 출력이 되는데 아무리 검색해보고 아무리 뒤져봐도 안나오네요;ㅠㅠ
배추빌더에 물어봐도 답변이 없고..
어떻게 수정해야하나요..?
이런식으로 apos<<요놈만 계속 출력이 되는데 아무리 검색해보고 아무리 뒤져봐도 안나오네요;ㅠㅠ
배추빌더에 물어봐도 답변이 없고..
어떻게 수정해야하나요..?
댓글 전체
값이 출력되는부분에
$title 이라고 예를들면
$title = str_replace("'","'",$title); 이라고 하시면됩니다
$title 이라고 예를들면
$title = str_replace("'","'",$title); 이라고 하시면됩니다
$item = array();
preg_match_all("/<item>(.*)<\/item>/iUs", $xml, $matchs);
for ($i=0, $max=count($matchs[1]); $i<$max; $i++) {
preg_match("/<title>(.*)<\/title>/iUs", $matchs[1][$i], $match);
$item[$i][title] = unhtmlspecialchars(trim($match[1]));
preg_match("/<link>(.*)<\/link>/iUs", $matchs[1][$i], $match);
$item[$i][link] = trim($match[1]);
preg_match("/img src=(.*) /iUs", $matchs[1][$i], $match);
$item[$i][img] = trim($match[1]);
}
return $item;
}
이부분이 값출력하는부분인거 같은데 어딜 바꿔주면 되나요..?ㅠㅠ
preg_match_all("/<item>(.*)<\/item>/iUs", $xml, $matchs);
for ($i=0, $max=count($matchs[1]); $i<$max; $i++) {
preg_match("/<title>(.*)<\/title>/iUs", $matchs[1][$i], $match);
$item[$i][title] = unhtmlspecialchars(trim($match[1]));
preg_match("/<link>(.*)<\/link>/iUs", $matchs[1][$i], $match);
$item[$i][link] = trim($match[1]);
preg_match("/img src=(.*) /iUs", $matchs[1][$i], $match);
$item[$i][img] = trim($match[1]);
}
return $item;
}
이부분이 값출력하는부분인거 같은데 어딜 바꿔주면 되나요..?ㅠㅠ
$item[$i][title] 이것 있는 바로 다음줄에
$item[$i][title] = str_replace("'","'",$item[$i][title]);
이렇게 추가하면됩니다
$item[$i][title] = str_replace("'","'",$item[$i][title]);
이렇게 추가하면됩니다
저기 그렇게 하면 아에 뉴스가 안나와버리는데..ㅠㅠ
아 사이트 내에 문제였네요.ㅎㅎ 답변 감사합니다..꾸벅..