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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans