Skip to content

RSS news provider should ignore commented text in <!-- --> #152

Closed

Description

@mmathieum

RSS news provider should ignore commented text in <!-- -->

This commented HTML/text can contains invalid URLs...

Code:

Example from [octranspo.com/fr/feeds/updates-fr]:
		<item>
			<title><![CDATA[Déviation : Circuit 56 pendant la fermeture de l&#8217;avenue Pretoria]]></title>
			<pubDate>Fri, 22 May 2026 12:23:00 EDT</pubDate>
			<category><![CDATA[Detours]]></category>
			<category><![CDATA[affectedRoutes-56]]></category>
			<link>https://www.octranspo.com/fr/alerts#alert-deviation-circuit-56-pendant-la-fermeture-de-lavenue-pretoria-1779467862056</link>
			<description><![CDATA[22 mai 2026 - <link href="/images/files/dist/custom-style.css" rel="stylesheet" /><!-- don't copy above line -->
<p>Du <strong>lundi 25 mai au vendredi 14 ao&ucirc;t,</strong> l&#39;avenue Pretoria sera ferm&eacute;e entre la promenade Queen Elizabeth et la rue O&#39;Connor en raison de travaux de reconstruction.</p>

<p>La fermeture se d&eacute;roulera en deux phases :</p>

<table class="hours-table">
	<tbody>
		<tr>
			<td>Phase</td>
			<td>Date de d&eacute;but</td>
			<td>Date de fin</td>
		</tr>
		<tr>
			<td><span class="tag tag-type__success">1</span></td>
			<td>25 mai<br />
			<span class="tag tag-type__success">4 H</span></td>
			<td>29 mai<br />
			<span class="tag tag-type__success">23 H 59</span></td>
		</tr>
		<tr>
			<td><span class="tag tag-type__warning">2</span></td>
			<td>1 juin<br />
			<span class="tag tag-type__warning">4 H</span></td>
			<td>14 ao&ucirc;t<br />
			<span class="tag tag-type__warning">23 H 59</span></td>
		</tr>
	</tbody>
</table>

<p><strong>Circuit 56</strong> fera un d&eacute;tour dans les deux directions pour contourner les fermetures avant de reprendre son itin&eacute;raire r&eacute;gulier.</p>

<p>Veuillez pr&eacute;voir plus de temps pour vos d&eacute;placements.</p>

<h4>Arr&ecirc;ts touch&eacute;s</h4>

<p>Informations &agrave; venir.</p>

<h4>Itin&eacute;raire de la d&eacute;viation</h4>

<h4>Detour routing <span class="tag tag-type__success">PHASE 1</span></h4>

<p><strong>56 Tunney&#39;s Pasture:</strong> Depuis Elgin, continuez sur Elgin, tournez &agrave; gauche sur Catherine, puis &agrave; gauche sur Bank, continuez sur Bank, tournez &agrave; droite sur First, puis continuez sur l&#39;itin&eacute;raire habituel.</p>

<p><strong>56 King Edward &amp; Civic:</strong> Depuis Glebe &agrave; Bank, tournez &agrave; gauche sur Bank, puis &agrave; droite sur Isabella, et continuez sur l&#39;itin&eacute;raire habituel.</p>

<h4>Detour routing <span class="tag tag-type__warning">PHASE 2</span></h4>

<p><strong>56 Tunney&#39;s Pasture:</strong>Depuis Elgin, continuez sur Elgin, tournez &agrave; gauche sur Catherine, puis &agrave; gauche sur Bank, continuez sur Bank, tournez &agrave; droite sur First, puis continuez sur l&#39;itin&eacute;raire habituel.</p>
<!--<h4>Carte de la déviation</h4>

<p><a href="https://www.octranspo.com/images/files/maps/detours/2025/.pdf"><img alt="Carte de la déviation pour les circuits 0." src="https://www.octranspo.com/images/files/maps/detours/2025/.png" style="width: 100%;" /></a></p>-->]]></description>
			<guid>https://www.octranspo.com/fr/alerts#alert-deviation-circuit-56-pendant-la-fermeture-de-lavenue-pretoria-1779467862056</guid>
		</item>

Activity

  1. added
    P2
    M
    on May 24, 2026
  2. added theissue type on May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

MP2bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions