Skip to content

Invalid RSS feed XML #777

@salim-b

Description

@salim-b

Trying to open the site's current RSS feed XML with Firefox results in the following error:

XML Parsing Error: not well-formed
Location: https://tidyverse.org/blog/index.xml
Line Number 1614, Column 3329:
<script type="application/json" data-for="htmlwidget-d98064058d21aab41c73">{"x":{"html":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' class='ggiraph-svg' role='graphics-document' id='svg_55735f3a_43be_433d_b895_216b1a6034dd' viewBox='0 0 504 311.47'>\n <style><![CDATA[.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"plot.caption\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"plot.title\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"legend.text\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"legend.ticks\"] { stroke:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"legend.frame<br>palette.colour.continuous\"] { stroke:red;fill:#FF888888; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"legend.box.background\"] { stroke:red;fill:#FFEEEE; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"axis.title.y.left\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"axis.ticks.y.left\"] { stroke:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"axis.text.y.left\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"legend.key\"] { stroke:red;fill:#FFCCCC; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"axis.title.x.bottom\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"panel.grid.major.x\"] { stroke:red; }.hover_data_svg_55735f3a_43be_433d_b895_216b1a6034dd[data-id = \"geom\"] { stroke:red;fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"plot.background\"] { stroke:red;fill:#FFEEEE; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"axis.ticks.x.bottom\"] { stroke:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"plot.subtitle\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"axis.line.x.bottom\"] { stroke:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"panel.background<br>panel.border\"] { stroke:red;fill:#FFCCCC; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"panel.grid.minor.y\"] { stroke:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"panel.grid.minor.x\"] { stroke:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"legend.background\"] { stroke:red;fill:#FFEEEE; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"strip.background.x\"] { stroke:red;fill:#FF8888; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"axis.text.x.bottom\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"panel.grid.major.y\"] { stroke:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"strip.text.x.top\"] { fill:red; }.hover_key_svg_55735f3a_43be_433d_b895_216b1a6034dd[key-id = \"shape\"] { stroke:red;fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"legend.title\"] { fill:red; }.hover_theme_svg_55735f3a_43be_433d_b895_216b1a6034dd[theme-id = \"axis.line.y.left\"] { stroke:red; }]]>< ...[TRUNCATED]

Similary, the miniflux RSS reader complains:

Unable to parse this feed: rss: unable to parse feed: XML syntax error on line 1614: unescaped ]]> not in CDATA section.

I think the following line in the RSS Hugo template is the culprit:

<description>{{ .Content | html }}</description>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions