RSS 발행시 title에 출력되는 문자열에 htmlspecialchars를 적용하여 XML문서가 깨어지지 않도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6728 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-08-05 11:15:19 +00:00
parent 1168c09fb9
commit 013919f29c
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{'<?xml version="1.0" encoding="UTF-8" ?>'}
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">{$info->title}</title>
<title type="text">{htmlspecialchars($info->title)}</title>
<!--@if($info->description)-->
<subtitle type="html">{str_replace('\'', '&apos;', htmlspecialchars($info->description))}</subtitle>
<!--@end-->

View file

@ -2,7 +2,7 @@
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title>{$info->title}</title>
<title>{htmlspecialchars($info->title)}</title>
<link>{$info->link}</link>
<description>{$info->description}</description>
<language>{$info->language}</language>