Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Formatting texts for Bio and Notes

1641284783

Edited 1641285233
Rughalt
Pro
Marketplace Creator
Hi! I have been developing some script that creates new journal entries, and I am struggling with setting "bio" field of a character with formatted text. It seems all HTML tags are stripped, and posting markdown does not seem to work. The documentation seems lacking in that regard... does anyone know how to deal with that? I am using <h1>, <h2> and <p> tags inside the text I try to set inside the bio field. Thanks Rughalt
Can you post a snippet of code showing what you are doing? on('ready', () => { 'use strict'; const char = createObj('character', { name: 'Test Character' }); char.set('bio', '<h2>this is h2</h2><p>this is a p</p>'); }); Above simple case works.