Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
121
rated 0 times [  126] [ 5]  / answers: 1 / hits: 19126  / 9 Years ago, fri, march 27, 2015, 12:00:00

I am new to summernote text editor. I am trying to get the proper content from the summernote textarea, which infact coming with html tags.
I tried



    <textarea class=summernote id=summernote  ng-model=blog.content ></textarea>


in my html page and getting the textarea content with,



     $(#summernote).code();


it is fetching the content in
html tags. I want the content to be displayed without the html tags.



Thank you for the advice.


More From » html

 Answers
3

After a long time of searching , thought instead of trying that in getting summernote text editor value with plain text, why not try with the angular filter. So searched and got the filter which exactly does what I needed.



Here is the link which did my job.



angularjs to output plain text instead of html


[#67283] Wednesday, March 25, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
reed

Total Points: 725
Total Questions: 85
Total Answers: 89

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
;