You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue this morning trying to deal with special characters in the RSS feed. I found that some characters were being escaped twice when using the cdata_wrap filter. An example is with a single apostrophe in article.name:
RSS Feed output:
<title><![CDATA[King to look &#39;behind the curtain&#39; at U.S. Supreme Court Justices&#39; relationships]]></title>
Title Outputs with the ' because the ampersand was escaped a second time
King to look 'behind the curtain ' at U.S. Supreme Court Justices' relationships
I solved the issue for now by using inline cdata along with the filter escape_once. There might be a better answer, but for now I fixed with the following:
wvu-design-system-v2/views/article_index.rss
Line 16 in e5077ca
wvu-design-system-v2/views/article_index.rss
Line 19 in e5077ca
I ran into an issue this morning trying to deal with special characters in the RSS feed. I found that some characters were being escaped twice when using the
cdata_wrap
filter. An example is with a single apostrophe in article.name:RSS Feed output:
Title Outputs with the
'
because the ampersand was escaped a second timeKing to look 'behind the curtain ' at U.S. Supreme Court Justices' relationships
I solved the issue for now by using inline cdata along with the filter
escape_once
. There might be a better answer, but for now I fixed with the following:The text was updated successfully, but these errors were encountered: