Adds CDATA sections to atom.xml, fixes #198
This commit is contained in:
parent
30af4db1cb
commit
6315527b2f
2 changed files with 10 additions and 7 deletions
|
@ -63,6 +63,11 @@ module OctopressLiquidFilters
|
|||
return (content.nil?) ? input : content
|
||||
end
|
||||
|
||||
# Escapes CDATA sections in post content
|
||||
def cdata_escape(input)
|
||||
input.gsub(/<!\[CDATA\[/, '<![CDATA[').gsub(/\]\]>/, ']]>')
|
||||
end
|
||||
|
||||
# Replaces relative urls with full urls
|
||||
def expand_urls(input, url='')
|
||||
url ||= '/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue