From 0c66d35e9a3d68466b6f2fd60497a62359309486 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Wed, 5 Apr 2023 18:56:41 -0500 Subject: [PATCH] html encoding the search filter data --- scripts/generate-site.csx | 2 +- site/partial/genre/adventure.html | 4 ++-- site/partial/genre/comedy.html | 8 ++++---- site/partial/genre/detective.html | 2 +- site/partial/genre/documentary.html | 6 +++--- site/partial/genre/drama.html | 4 ++-- site/partial/genre/horror.html | 4 ++-- site/partial/genre/music.html | 2 +- site/partial/genre/mystery.html | 4 ++-- site/partial/series.html | 28 ++++++++++++++-------------- 10 files changed, 32 insertions(+), 32 deletions(-) diff --git a/scripts/generate-site.csx b/scripts/generate-site.csx index efd0b66..a975ce2 100755 --- a/scripts/generate-site.csx +++ b/scripts/generate-site.csx @@ -55,7 +55,7 @@ private class Series { } public string TitleFilter { - get => Title.ToLowerInvariant(); + get => WebUtility.HtmlEncode(Title.ToLowerInvariant()); } } diff --git a/site/partial/genre/adventure.html b/site/partial/genre/adventure.html index e769572..b74da65 100644 --- a/site/partial/genre/adventure.html +++ b/site/partial/genre/adventure.html @@ -288,7 +288,7 @@ hx-target='main' hx-push-url='/series/ellery-queens-minute-mysteries' hx-swap='innerHTML show:top' - data-filter='ellery queen's minute mysteries' + data-filter='ellery queen's minute mysteries' title='Ellery Queen's Minute Mysteries'> cover image @@ -768,7 +768,7 @@ hx-target='main' hx-push-url='/series/world-adventurers-club' hx-swap='innerHTML show:top' - data-filter='world adventurer's club' + data-filter='world adventurer's club' title='World Adventurer's Club'> cover image diff --git a/site/partial/genre/comedy.html b/site/partial/genre/comedy.html index cdee9f0..c6ca46f 100644 --- a/site/partial/genre/comedy.html +++ b/site/partial/genre/comedy.html @@ -88,7 +88,7 @@ hx-target='main' hx-push-url='/series/amos-n-andy' hx-swap='innerHTML show:top' - data-filter='amos 'n' andy' + data-filter='amos 'n' andy' title='Amos 'n' Andy'> cover image @@ -368,7 +368,7 @@ hx-target='main' hx-push-url='/series/duffys-tavern' hx-swap='innerHTML show:top' - data-filter='duffy's tavern' + data-filter='duffy's tavern' title='Duffy's Tavern'> cover image @@ -388,7 +388,7 @@ hx-target='main' hx-push-url='/series/edgar-bergen--charlie-mccarthy' hx-swap='innerHTML show:top' - data-filter='edgar bergen & charlie mccarthy' + data-filter='edgar bergen & charlie mccarthy' title='Edgar Bergen & Charlie McCarthy'> cover image @@ -668,7 +668,7 @@ hx-target='main' hx-push-url='/series/mama-blooms-brood' hx-swap='innerHTML show:top' - data-filter='mama bloom's brood' + data-filter='mama bloom's brood' title='Mama Bloom's Brood'> cover image diff --git a/site/partial/genre/detective.html b/site/partial/genre/detective.html index 97affe8..011d360 100644 --- a/site/partial/genre/detective.html +++ b/site/partial/genre/detective.html @@ -688,7 +688,7 @@ hx-target='main' hx-push-url='/series/rogues-gallery' hx-swap='innerHTML show:top' - data-filter='rogue's gallery' + data-filter='rogue's gallery' title='Rogue's Gallery'> cover image diff --git a/site/partial/genre/documentary.html b/site/partial/genre/documentary.html index f2b1186..9997d1b 100644 --- a/site/partial/genre/documentary.html +++ b/site/partial/genre/documentary.html @@ -208,7 +208,7 @@ hx-target='main' hx-push-url='/series/ripleys-believe-it-or-not' hx-swap='innerHTML show:top' - data-filter='ripley's believe it or not' + data-filter='ripley's believe it or not' title='Ripley's Believe It Or Not'> cover image @@ -228,7 +228,7 @@ hx-target='main' hx-push-url='/series/ripleys-one-minute-shorts' hx-swap='innerHTML show:top' - data-filter='ripley's one minute shorts' + data-filter='ripley's one minute shorts' title='Ripley's One Minute Shorts'> cover image @@ -348,7 +348,7 @@ hx-target='main' hx-push-url='/series/you-cant-do-business-with-hitler' hx-swap='innerHTML show:top' - data-filter='you can't do business with hitler' + data-filter='you can't do business with hitler' title='You Can't Do Business With Hitler'> cover image diff --git a/site/partial/genre/drama.html b/site/partial/genre/drama.html index 649a6a6..71cd220 100644 --- a/site/partial/genre/drama.html +++ b/site/partial/genre/drama.html @@ -368,7 +368,7 @@ hx-target='main' hx-push-url='/series/mama-blooms-brood' hx-swap='innerHTML show:top' - data-filter='mama bloom's brood' + data-filter='mama bloom's brood' title='Mama Bloom's Brood'> cover image @@ -588,7 +588,7 @@ hx-target='main' hx-push-url='/series/screen-directors-playhouse' hx-swap='innerHTML show:top' - data-filter='screen directors' playhouse' + data-filter='screen directors' playhouse' title='Screen Directors' Playhouse'> cover image diff --git a/site/partial/genre/horror.html b/site/partial/genre/horror.html index 6b4284a..532dfca 100644 --- a/site/partial/genre/horror.html +++ b/site/partial/genre/horror.html @@ -8,7 +8,7 @@ hx-target='main' hx-push-url='/series/arch-obolers-plays' hx-swap='innerHTML show:top' - data-filter='arch oboler's plays' + data-filter='arch oboler's plays' title='Arch Oboler's Plays'> cover image @@ -108,7 +108,7 @@ hx-target='main' hx-push-url='/series/the-hermits-cave' hx-swap='innerHTML show:top' - data-filter='the hermit's cave' + data-filter='the hermit's cave' title='The Hermit's Cave'> cover image diff --git a/site/partial/genre/music.html b/site/partial/genre/music.html index 9756ee2..5258535 100644 --- a/site/partial/genre/music.html +++ b/site/partial/genre/music.html @@ -268,7 +268,7 @@ hx-target='main' hx-push-url='/series/mothers-best-flour' hx-swap='innerHTML show:top' - data-filter='mother's best flour' + data-filter='mother's best flour' title='Mother's Best Flour'> cover image diff --git a/site/partial/genre/mystery.html b/site/partial/genre/mystery.html index 93b2b26..8c2954f 100644 --- a/site/partial/genre/mystery.html +++ b/site/partial/genre/mystery.html @@ -68,7 +68,7 @@ hx-target='main' hx-push-url='/series/arch-obolers-plays' hx-swap='innerHTML show:top' - data-filter='arch oboler's plays' + data-filter='arch oboler's plays' title='Arch Oboler's Plays'> cover image @@ -188,7 +188,7 @@ hx-target='main' hx-push-url='/series/ellery-queens-minute-mysteries' hx-swap='innerHTML show:top' - data-filter='ellery queen's minute mysteries' + data-filter='ellery queen's minute mysteries' title='Ellery Queen's Minute Mysteries'> cover image diff --git a/site/partial/series.html b/site/partial/series.html index 7cd18cd..aeedf45 100644 --- a/site/partial/series.html +++ b/site/partial/series.html @@ -428,7 +428,7 @@ hx-target='main' hx-push-url='/series/amos-n-andy' hx-swap='innerHTML show:top' - data-filter='amos 'n' andy' + data-filter='amos 'n' andy' title='Amos 'n' Andy'> cover image @@ -448,7 +448,7 @@ hx-target='main' hx-push-url='/series/arch-obolers-plays' hx-swap='innerHTML show:top' - data-filter='arch oboler's plays' + data-filter='arch oboler's plays' title='Arch Oboler's Plays'> cover image @@ -1768,7 +1768,7 @@ hx-target='main' hx-push-url='/series/duffys-tavern' hx-swap='innerHTML show:top' - data-filter='duffy's tavern' + data-filter='duffy's tavern' title='Duffy's Tavern'> cover image @@ -1788,7 +1788,7 @@ hx-target='main' hx-push-url='/series/edgar-bergen--charlie-mccarthy' hx-swap='innerHTML show:top' - data-filter='edgar bergen & charlie mccarthy' + data-filter='edgar bergen & charlie mccarthy' title='Edgar Bergen & Charlie McCarthy'> cover image @@ -1808,7 +1808,7 @@ hx-target='main' hx-push-url='/series/ellery-queens-minute-mysteries' hx-swap='innerHTML show:top' - data-filter='ellery queen's minute mysteries' + data-filter='ellery queen's minute mysteries' title='Ellery Queen's Minute Mysteries'> cover image @@ -2468,7 +2468,7 @@ hx-target='main' hx-push-url='/series/the-hermits-cave' hx-swap='innerHTML show:top' - data-filter='the hermit's cave' + data-filter='the hermit's cave' title='The Hermit's Cave'> cover image @@ -3108,7 +3108,7 @@ hx-target='main' hx-push-url='/series/mama-blooms-brood' hx-swap='innerHTML show:top' - data-filter='mama bloom's brood' + data-filter='mama bloom's brood' title='Mama Bloom's Brood'> cover image @@ -3388,7 +3388,7 @@ hx-target='main' hx-push-url='/series/mothers-best-flour' hx-swap='innerHTML show:top' - data-filter='mother's best flour' + data-filter='mother's best flour' title='Mother's Best Flour'> cover image @@ -4268,7 +4268,7 @@ hx-target='main' hx-push-url='/series/ripleys-believe-it-or-not' hx-swap='innerHTML show:top' - data-filter='ripley's believe it or not' + data-filter='ripley's believe it or not' title='Ripley's Believe It Or Not'> cover image @@ -4288,7 +4288,7 @@ hx-target='main' hx-push-url='/series/ripleys-one-minute-shorts' hx-swap='innerHTML show:top' - data-filter='ripley's one minute shorts' + data-filter='ripley's one minute shorts' title='Ripley's One Minute Shorts'> cover image @@ -4348,7 +4348,7 @@ hx-target='main' hx-push-url='/series/rogues-gallery' hx-swap='innerHTML show:top' - data-filter='rogue's gallery' + data-filter='rogue's gallery' title='Rogue's Gallery'> cover image @@ -4488,7 +4488,7 @@ hx-target='main' hx-push-url='/series/screen-directors-playhouse' hx-swap='innerHTML show:top' - data-filter='screen directors' playhouse' + data-filter='screen directors' playhouse' title='Screen Directors' Playhouse'> cover image @@ -5308,7 +5308,7 @@ hx-target='main' hx-push-url='/series/world-adventurers-club' hx-swap='innerHTML show:top' - data-filter='world adventurer's club' + data-filter='world adventurer's club' title='World Adventurer's Club'> cover image @@ -5388,7 +5388,7 @@ hx-target='main' hx-push-url='/series/you-cant-do-business-with-hitler' hx-swap='innerHTML show:top' - data-filter='you can't do business with hitler' + data-filter='you can't do business with hitler' title='You Can't Do Business With Hitler'> cover image -- 2.40.1