web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

I want Javascript code to populate the body of email to description field in text format of a case entity as its showing it in HTML format

(0) ShareShare
ReportReport
Posted on by 40

Urgent

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Sheershendu,

    You can just replace HTML tags by using regex:

    https://stackoverflow.com/questions/15180173/convert-html-to-plain-text-in-js-without-browser-environment

    Or creating a dummy div element and save description value as its innerHTML value, then return the element innerText value.

    https://www.labnol.org/code/19813-convert-html-to-text

    Regards,

    Clofly

  • Sheershendu Profile Picture
    40 on at

    Thanks a lot Clofly

  • Sheershendu Profile Picture
    40 on at

    Hi Clofly,

    I want to assign Entitlement to Case using Plugin also I have to attach SLA with the Entitlement. So, as I am new to this can you please help me step wise along with the code?

    Thanks & Regards,

    Sheershendu Bhattacharjee

  • cloflyMao Profile Picture
    25,210 on at

    Hi Sheershendu,

    OK, could you open a new thread for the new question? I will reply to you in that thread, thanks.  :)

    In addition, could you let me know what the target entity of plugin?(Case or Entitlement) It will be helpful if you could share more details about your requirement.(Please also post description of requirement to the new thread.)

    Regards,

    Clofly

  • Sheershendu Profile Picture
    40 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 80 Super User 2026 Season 2

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 35 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans