I am trying to get the value of an Enhanced Rich text column and set it to another Multi line of text (Plain text) column. When I use the below line,
string richtext = li["Enhanced_x0020_Rich_x0020_Text"].ToString();
the richtext variable gets data along with the <div>
& <p>
tags. I tried the below way
string richtext=li.FieldValueAsText["Enhanced_x0020_Rich_x0020_Text"];
but it would throw an error
The property or field has not been initiated. It has not been requested or the request has not been executed
What is the proper way to query the data only as plain text?