Closed Monali-Zala closed 8 months ago
In the description , It is store in database with html tags but I want to show the text with the formatting according to that tag. Example:
Hello @Monali-Zala this should not be really an issue with the library anyway a solution you could use is using the innerHTML inside a ng template
<ng-template #myTemplate>
<div [innerHTML]="htmlString"></div>
</ng-template>
You should create an ng-template and then set your tag html that comes from the DB inside a string "htmlString" for instance. Then you should provide this template to the library :) try with this approach please and let me know
Hello I used this approach <ng-template #myTemplate> <div [innerHTML]="htmlString">
Ok I understand what you need, I can try to work on a new feature that will be released in the v17.0.4
I'am working on the update
I have created this new input to allow you to provide your custom template
This is an example of template, since you have some tags with html and some with no html, you are forced to created a template for each event and then provide it as input as this image
With this result
Closing with v17.0.4