Question 1:
On Line 20 of the RSS template I have <content:encoded><![CDATA[...... The < before the ! in the template gets rendered to < in the output index.xml. The same happens for the same character on Line 21. Why is this happening? I can force it to render as an < in the output xml if I use {{ "<" | safeHTML }} but that’s silly to have it there when it’s not supposed to be necessary. Why is Hugo converting it to to code form?
Question 2:
When things are working fine, the RSS validator recommends not having any relative urls in the content. The relative urls are from markdown image links in content files. I thought setting canonifyURLs = true in config.toml would force all URLs referenced to become absolute urls, but it doesn’t for those graphics. Is there a way to force that to happen? I want to keep the url in the body of the markdown file relative since that’s the best practice, but I want the output to be absoluteURL. I know I could probably do something like ![Graphic]({{ "images/graphic.jpg" | absURL }}) but is that the only way?
I know why one would use CDATA, but why are you? Do you have a special requirement for it? Because you could remove it and one of yer problems is solved.
I saw that it would work if I didn’t have CDATA but all the recommendations online seemed to say to use CDATA if you were including styled html. What is your understanding on it?
I didn’t mean inline styles in the css sense. I meant html markup.
anyway, i removed the CDATA tags and added the pipe to html like you had, and it worked, not only that but also the relative urls for the graphics were fixed too. so i guess that helped!