mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
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:
parent
1168c09fb9
commit
013919f29c
2 changed files with 2 additions and 2 deletions
|
|
@ -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('\'', ''', htmlspecialchars($info->description))}</subtitle>
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue