---
sourceDocument: Yokohama ServiceNow AI Platform Administration
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/platform-administration

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Render journal field entries as HTML

# Render journal field entries as HTML {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Journal fields can render text enclosed within code tags as HTML.

## Before you begin

* Role required: any role that grants write access to a journal field
* System property: the glide.ui.security.allow_codetag is set to the default value of true  
  Note:  
  To learn more about this property, see Allow JavaScript tags in embedded HTML (instance security hardening) in Instance Security Hardening Settings.
{#render-journal-field-entries-as-html__ul_fgn_nh1_qy}

## About this task

By default, a High Security Setting escapes any HTML code you type in a journal field by replacing it with its equivalent HTML entity value. Escaping causes the system to display HTML code as text rather than forwarding it to the browser as rendering instructions.

## Procedure

1. Enter <kbd class="ph userinput">[code][/code]</kbd> tags around any code you want to render as HTML.  
   Note:  
   A single journal entry can contain multiple code tags as long as each code tag has a beginning and ending tag.  
   For example, enter these lines: {#render-journal-field-entries-as-html__table_ank_bj1_qy__entry__2}

   | Code entered | Result |
   |-|-|
   | <kbd class="ph userinput">[code]&lt;a href="http://www.service-now.com"&gt;ServiceNow&lt;/a&gt;[/code]</kbd> | The system renders a hyperlink to the ServiceNow web site. |
   | <kbd class="ph userinput">[code]&lt;b&gt;This text will be bold. &lt;/b&gt;[/code]</kbd> | The system renders the sentence in bold. |
   | <kbd class="ph userinput">&lt;b&gt;This text will not be bold.&lt;/b&gt;</kbd> | The system escapes the bold tags and renders them as text. |
   | <kbd class="ph userinput">[code]&lt;script&gt; gs.info(gs.getUserDisplayName());&lt;/script&gt;[/code]</kbd> | The system escapes the content of the script tag. Note: By default, the HTML Sanitizer prevents the entry of \<script\> elements. |
   [Table 1. Results of entering HTML code]

   {#render-journal-field-entries-as-html__table_ank_bj1_qy} For more examples of HTML formatting options, see the blog post [Formatting within Journal fields using HTML
   \& \[code\]](https://community.servicenow.com/community?id=community_blog&sys_id=4d9ceae1dbd0dbc01dcaf3231f9619e1) by a ServiceNow Technical Support Engineer in the ServiceNow Community.
2. Click Post.  
   Note:  
   You cannot edit previous journal entries.
{#render-journal-field-entries-as-html__steps-unordered_hqx_bf1_qy}

## Result

The system renders the text within code tags as HTML.
**Related topics**   

* General security settings properties
* [HTML sanitizer](https://www.servicenow.com/docs/access?context=c_HTMLSanitizer&version=yokohama&pubname=yokohama-platform-security&ft:locale=en-US)

