← All pipes
Text

stripDiacritics

Latin accent folding for search labels; preserve other scripts.

Use it in your component

Standalone component
import { Component } from '@angular/core';
import { StripDiacriticsPipe } from 'extra-pipe';

@Component({
  standalone: true,
  imports: [StripDiacriticsPipe],
  template: `{{ "Café عربي" | stripDiacritics }}`,
})
export class ExampleComponent {

}

Template
{{ "Café عربي" | stripDiacritics }}

Try it live.

The output below runs the packed library. Edit data, not code.

Use double quotes for text, or a number, array, object or null.
No parameters: use []. Locale is controlled separately.
This pipe has no locale override.
Live template data
readonly value = "Café عربي";

{{ value | stripDiacritics }}

Rendered output

Cafe عربي