feat: imprint

This commit is contained in:
2026-04-27 17:06:08 +02:00
parent 87fe28cbfc
commit 026af41c4d
7 changed files with 193 additions and 178 deletions
+12
View File
@@ -20,6 +20,8 @@ export class ImprintComponent implements OnInit {
private readonly sanitizer = inject(DomSanitizer);
protected readonly global: Global = global;
protected readonly displayStreet: string = this.normalizeText(global.address.street);
protected readonly displayCity: string = this.normalizeText(global.address.city);
protected contactSafeMail!: SafeUrl;
protected abuseSafeMail!: SafeUrl;
@@ -30,4 +32,14 @@ export class ImprintComponent implements OnInit {
this.contactSafeMail = this.sanitizer.bypassSecurityTrustUrl(`mailto:${global.contactMail}`);
this.abuseSafeMail = this.sanitizer.bypassSecurityTrustUrl(`mailto:${this.global.abuseMail}`);
}
private normalizeText(value: string): string {
return value
.replaceAll('ß', 'ß')
.replaceAll('ö', 'ö')
.replaceAll('Ä', 'Ä')
.replaceAll('ä', 'ä')
.replaceAll('Ü', 'Ü')
.replaceAll('ü', 'ü');
}
}