diff --git a/src/lib/components/ArticleView.svelte b/src/lib/components/ArticleView.svelte
index a4a52e6..af59f48 100644
--- a/src/lib/components/ArticleView.svelte
+++ b/src/lib/components/ArticleView.svelte
@@ -24,7 +24,10 @@
{/if}
-{@html article.BLOC_TEXTUEL?.CONTENU}
+{@html article.BLOC_TEXTUEL?.CONTENU.replaceAll("<<", "«").replaceAll(
+ ">>",
+ "»",
+)}
{#if ciblesCreation.length > 0}
diff --git a/src/lib/summaries.ts b/src/lib/summaries.ts
index 168d655..dfd56ea 100644
--- a/src/lib/summaries.ts
+++ b/src/lib/summaries.ts
@@ -406,27 +406,33 @@ export function summarizeLegalObject(
]
return {
items: [
- `Article ${metaArticle.NUM} ${metaArticle.TYPE} ${metaArticle.ETAT}, en vigueur`,
- ...(metaArticle.DATE_FIN === "2999-01-01"
- ? ([
- " depuis le ",
- {
- value: metaArticle.DATE_DEBUT,
- type: "date",
- },
- ] as Summary[])
- : ([
- " du ",
- {
- value: metaArticle.DATE_DEBUT,
- type: "date",
- },
- " au ",
- {
- value: metaArticle.DATE_FIN,
- type: "date",
- },
- ] as Summary[])),
+ `Article${[metaArticle.NUM, metaArticle.TYPE, metaArticle.ETAT]
+ .filter((value) => value !== undefined)
+ .map((value) => ` ${value}`)
+ .join("")}, en vigueur`,
+ ...(metaArticle.DATE_DEBUT === "2999-01-01" &&
+ metaArticle.DATE_FIN === "2999-01-01"
+ ? []
+ : metaArticle.DATE_FIN === "2999-01-01"
+ ? ([
+ " depuis le ",
+ {
+ value: metaArticle.DATE_DEBUT,
+ type: "date",
+ },
+ ] as Summary[])
+ : ([
+ " du ",
+ {
+ value: metaArticle.DATE_DEBUT,
+ type: "date",
+ },
+ " au ",
+ {
+ value: metaArticle.DATE_FIN,
+ type: "date",
+ },
+ ] as Summary[])),
...(titreTexte === undefined ? [] : [" (", titreTexte, ")"]),
],
type: "concatenation",