Can someone help me how to remove the HTML tags in the Knowledge comments

NagaNandini N
Tera Guru

Can someone help me how to remove the HTML tags in the Knowledge comments?

I have gone through this KB: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0864000

Kindly help, please.

Please find the screenshot for your reference.

 

 

2 ACCEPTED SOLUTIONS

Namrata Ghorpad
Mega Sage
Mega Sage

Hello,

Try below code.

GlideSPScriptable().stripHTML(yourHtmlStr)

 

Please mark my answer as helpful/correct if it helps you.

Regards,

Namrata

View solution in original post

2 REPLIES 2

Namrata Ghorpad
Mega Sage
Mega Sage

Hello,

Try below code.

GlideSPScriptable().stripHTML(yourHtmlStr)

 

Please mark my answer as helpful/correct if it helps you.

Regards,

Namrata