PaulB
Well-known member
- Affected version
- 2.2.5
RSS generated for posts with embedded attachments may contain code such as the following:
There's unnecessary JavaScript in there that will cause issues with some parsers.
XML:
<content:encoded><![CDATA[<div class="bbWrapper"><b><i><span style="color: #ff0000">Test</span></i></b><br />
<br />
<script class="js-extraPhrases" type="application/json">
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
</script>
<div class="bbImageWrapper js-lbImage" title="example.png"
data-src="https://bug.example/attachments/example-png.1/" data-lb-sidebar-href="" data-lb-caption-extra-html="" data-single-image="1">
<img src="https://bug.example/attachments/example-png.1/"
data-url=""
class="bbImage"
data-zoom-target="1"
style=""
alt="example.png"
title="example.png"
width="1398" height="386" loading="lazy" />
</div><br />
<br />
Example text...<br />
<br />
<a href="https://bug.example/threads/example.1238487/" class="link link--internal">Read more</a></div>]]></content:encoded>
There's unnecessary JavaScript in there that will cause issues with some parsers.