mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-04 06:49:49 +00:00 
			
		
		
		
	fix(rss): add cdata to escape html content for rss feed (#2046)
* add cdata to escape html content * fix: remove redundant CDATA
This commit is contained in:
		@@ -58,7 +58,7 @@ function generateRSSFeed(cfg: GlobalConfiguration, idx: ContentIndexMap, limit?:
 | 
				
			|||||||
    <title>${escapeHTML(content.title)}</title>
 | 
					    <title>${escapeHTML(content.title)}</title>
 | 
				
			||||||
    <link>https://${joinSegments(base, encodeURI(slug))}</link>
 | 
					    <link>https://${joinSegments(base, encodeURI(slug))}</link>
 | 
				
			||||||
    <guid>https://${joinSegments(base, encodeURI(slug))}</guid>
 | 
					    <guid>https://${joinSegments(base, encodeURI(slug))}</guid>
 | 
				
			||||||
    <description>${content.richContent ?? content.description}</description>
 | 
					    <description><![CDATA[ ${content.richContent ?? content.description} ]]></description>
 | 
				
			||||||
    <pubDate>${content.date?.toUTCString()}</pubDate>
 | 
					    <pubDate>${content.date?.toUTCString()}</pubDate>
 | 
				
			||||||
  </item>`
 | 
					  </item>`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user