sachinchoolur / angular-trix

A rich WYSIWYG text editor directive for angularjs.
http://sachinchoolur.github.io/angular-trix/
MIT License
328 stars 62 forks source link

How to remove HTML tags when data is displayed from the database? #30

Open chinnaprince opened 7 years ago

chinnaprince commented 7 years ago

I am new using to angular trix. I am having some trouble in retrieving the data from the database. When I save the content from the editor to database it is saving fine but when I retrieve instead of the data what I saved, HTML tags are applying.

For example: in the editor if save Sample content as bold and when I reload the page after saving it is displayed as < div >< strong>Sample content< /strong>< /div> but I just need Sample content in bold. Please help me in fixing this issue.

ghost commented 7 years ago

That is not an angular-trix issue. The first Google result for "angularjs show html" would give you your answer: http://stackoverflow.com/questions/9381926/angularjs-insert-html-into-view

iit2011081 commented 7 years ago

How to remove css(all fonts, divs, etc), html while pasting copied text in editor?