Html in Description via REST
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2023 04:33 AM
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?
1 REPLY 1
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2023 09:47 AM
[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...