---
title: "Angular/ngx-translate: How can I use HTML in translation texts?"
description: "ngx-translate doesn't render HTML by default for security reasons, but you can enable it by using the innerHTML binding with the translate pipe, ensuring proper sanitization."
canonical: "https://www.codeandweb.com/babeledit/knowledgebase/ngx-translate-use-html"
product: "babeledit"
source: "html"
---

# Angular/ngx-translate: How can I use HTML in translation texts?

Please have a look here: [Using HTML Formatted Messages](https://www.codeandweb.com/babeledit/tutorials/how-to-translate-your-angular-app-with-ngx-translate.md#use-html-messages)

## Structured data

```json
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "Angular/ngx-translate: How can I use HTML in translation texts?"
}
```
