The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to remove HTML Tags in List view of Knowledge Article Table for the filed Article Body.

ShubhamK2600572
Tera Contributor

I want to extract all the KB article. I exported the data as an excel export from Knowledge Table, but in Article body filed it's coming with html tags. How we can remove that html tags while exporting the data.

1 ACCEPTED SOLUTION

svirkar420
Giga Guru

I also was not able to get any solution however, I found a workaround in which I made a custom field and copied the exact HTML article body to the custom field and just removed the tags like p and b but kept the line break using the regex expression in BR.
Here are the details.
BR-
When to run-  "before insert".

Script screenshot is attached below.

@ShubhamK2600572 Please mark this solution as accepted.  As it will be helpful for others.

Regards,

Saurabh.

View solution in original post

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ShubhamK2600572 

Worth checking

 

https://www.servicenow.com/community/architect-articles/how-to-remove-the-html-tag-in-the-list/ta-p/...

 

https://www.servicenow.com/community/developer-forum/can-someone-help-me-how-to-remove-the-html-tags...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

skalc
Tera Contributor

I dont think you can update the property to false, as it is a security requirement to have the property to "true".

Warning:

Not allowing set of unsafe property value: glide.ui.escape_html_list_field=false
 
Is there any way to view/remove the html/source code on the article body for the history->calendar view?

svirkar420
Giga Guru

@skalc Have you find the solution for this, My requirement is when we are viewing the knowledge records from list view the article body column is showing HTML tags along with the text in it, instead of this only text from article body should be seen. 
can you help me with this,

Regards,

Saurabh

 

skalc
Tera Contributor

@svirkar420 No, couldnt find any solution. I did check out-of the box and the functionality is same.The article body in the list view shows with html tags.