Within my Angular TS file, I am attempting to identify if a string contains the characters >= and then substitute them with the corresponding ASCII character for greater than or equal to. Here is my current code snippet:
@Input()
public set textLabel(value: string) {
let labelSymbols = value
// Determine how to detect the presence of >= in the string
// Replace occurrences of >= with ASCII character
this._textLabel = labelSymbols
this._changeDetectorRef.detectChanges();
}
public get textLabel(): string {
return this._textLabel
}
private _textLabel: string;
Could someone advise on the necessary steps to replace the combination of greater than and equal to in the string?