<commit_before>import {DomSanitizer} from "@angular/platform-browser";
import {Pipe, PipeTransform} from "@angular/core";

/**
 * DomSanitizer HTML security is bypassed and the given value is trusted to be safe HTML.
 * Otherwise, the id attributes of span tags in the received JSON data would not be accessible.
 */
@Pipe({name: 'safeHtml'})
export class SafeHtmlPipe implements PipeTransform {
  constructor(private sanitized: DomSanitizer) {}
  transform(value: any) {
    return this.sanitized.bypassSecurityTrustHtml(value);
  }
}<commit_msg>updated comment in safe-html.pipe.ts<commit_after>import {DomSanitizer} from "@angular/platform-browser";
import {Pipe, PipeTransform} from "@angular/core";

/**
 * DomSanitizer HTML security is bypassed and the given value is trusted to be safe HTML.
 * Otherwise, the id attributes of span tags in the received HTML code would not be accessible.
 */
@Pipe({name: 'safeHtml'})
export class SafeHtmlPipe implements PipeTransform {
  constructor(private sanitized: DomSanitizer) {}
  transform(value: any) {
    return this.sanitized.bypassSecurityTrustHtml(value);
  }
}
{'fraction_non_alphanumeric': 0.09937332139659803, 'fraction_numerical': 0.0, 'mean_word_length': 5.31638418079096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5079802', 'n_tokens_mistral': 326, 'n_tokens_neox': 318, 'n_words': 111}