cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sbonera
Advocate I
Advocate I

entity form convert textarea html to plain text

Hi i have an entity form which has a read only text area , however in the model driven app it is a multi line text area and therefore when viewed on a entity form on a portal it is including the HTML tags. I would like to strip out the html tags

 

 entityform.PNG

I found a similar post on dynamics forum Adxstudio Entity Form: Display field as HTML - Microsoft Dynamics CRM Forum Community Forum   however this appear not to work.

 

I think i am looking at some kind of jquery on the entity form, to get the value of the textarea and replace without the html tags.

 

Any help would be appreciated.

 

 

1 REPLY 1
justinburch
Microsoft
Microsoft

Hi @sbonera,

If you just want to strip the HTML:

var $original = $("#new_multilineschemahere");
var $new = $("<div></div>");
$new.html($original.text());
$original.val($new.text());

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (19,428)