구글 RSS(곱슬님이 올려주신플러그인질문요/.)

|

댓글 5개

값이 출력되는부분에

$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;
}
이부분이 값출력하는부분인거 같은데 어딜 바꿔주면 되나요..?ㅠㅠ
$item[$i][title] 이것 있는 바로 다음줄에

$item[$i][title] = str_replace("'","'",$item[$i][title]);

이렇게 추가하면됩니다
저기 그렇게 하면 아에 뉴스가 안나와버리는데..ㅠㅠ
아 사이트 내에 문제였네요.ㅎㅎ 답변 감사합니다..꾸벅..
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 5,272
16년 전 조회 860
16년 전 조회 984
16년 전 조회 804
16년 전 조회 824
16년 전 조회 1,179
16년 전 조회 1,011
16년 전 조회 1,404
16년 전 조회 1,634
16년 전 조회 1,473
16년 전 조회 1,030
16년 전 조회 1,538
16년 전 조회 1,137
16년 전 조회 1,620
16년 전 조회 976
16년 전 조회 1,606
16년 전 조회 1,002
16년 전 조회 971
16년 전 조회 1,526
16년 전 조회 1,017