Rich text formatting in Angular

%3CLINGO-SUB%20id%3D%22lingo-sub-760194%22%20slang%3D%22en-US%22%3ERich%20text%20formatting%20in%20Angular%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-760194%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20convert%20or%20remove%20the%20mark%20ups%2C%20%3C%2FP%3E%3CDIV%3E%20%3CBR%20%2F%3E%20etc.%20to%20a%20textarea%3F%20We%20use%20angular%20to%20get%20the%20data%20from%20a%20SharePoint%20list%20with%20Rich%20text%20enabled.%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-761589%22%20slang%3D%22en-US%22%3ERe%3A%20Rich%20text%20formatting%20in%20Angular%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-761589%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20following%20article%20provides%20some%20good%20information%20on%20how%20to%20do%20this%20from%20within%20an%20Angular%20context%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F17289448%2Fangularjs-to-output-plain-text-instead-of-html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F17289448%2Fangularjs-to-output-plain-text-instead-of-html%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

Is there a way to convert or remove the mark ups, <div> <br> etc. to a textarea? We use angular to get the data from a SharePoint list with Rich text enabled.

 

1 Reply

The following article provides some good information on how to do this from within an Angular context:

https://stackoverflow.com/questions/17289448/angularjs-to-output-plain-text-instead-of-html