@
@
@atmk2020-01-04 06:43:15
MySQL
@atmk, 2020-01-04 06:43:15

How to display pre-formatted text on a website page (Angular)?

Task
1. The user enters some text and formats it. (For example, in the text editor CKEditor or in some other). It turns out the text with HTML tags.
2. You need to store this text in the MySQL database, and then, upon request, display it formatted on an HTML page in Angular
QUESTION
1. How to save this text in a MySQL table? With or without HTML tags?
2. How to display text with tags on the page? If you take just double quotes {{ text with HTML tags }}, then the tags themselves are displayed, and the text is not formatted ...
3. Maybe I have not the right approach ??? Maybe there are some text converters in Angular???
THANKS FOR THE ANSWER...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-01-04
@Seasle

DomSanitizer.bypassSecurityTrustHtml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question