Html in Description via REST

mc-webcore
Tera Contributor

 

Using Rest API ,  i create a ticket with Html in the description,  but it add it with visibale tags,  but in commments it renders correctly.

 

How do you add description field with html via REST?

 

mcwebcore_0-1679743931976.png

 

1 REPLY 1

Community Alums
Not applicable

[code] tags only work in journal fields, like comments/work notes. You can't render HTML in the description field. You'd need to remove the HTML using a method such as RegEx - you can find more detail about that on this post: https://www.servicenow.com/community/developer-forum/remove-html-tags-when-copying-into-a-string-fie...