Skip to content

Commit

Permalink
add \n to <br> for faq pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed May 9, 2024
1 parent 25cfdd7 commit f0eb053
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/_shared/pipes/faq.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export class FaqPipe implements PipeTransform {
)}" target="_blank">${foundCard.name}</a>`;
});

value = value.replace('\n', '<br>');

return value;
}
}

0 comments on commit f0eb053

Please sign in to comment.