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

Displaying strings with HTML in them on a sheet

1477711191
Quinn
Pro
Sheet Author
So right now, I've got this very simple piece of code: <span name="attr_tech_description"></span> And this is the code that sets attr_tech_description: var description = 'This is a <b>bold</b> description';                 var attrs = {}; attrs['repeating_techs_' + idarray[i] + '_tech_description'] = description; setAttrs(attrs); But the problem is that I was hoping it would put the word 'bold' in bold, but instead it just draws out the full HTML as a string. In short, what I'm trying to do is use dynamic character sheet data to generate a text description of what an ability does, but I want to have formatting on the description, like bolding important keywords or numbers. What's the best way to set this up? Thanks in advance for the help!
1477720190

Edited 1477720432
Lithl
Pro
Sheet Author
API Scripter
I attempted to achieve this on the Arkham Horror sheet, but I was unsuccessful in finding a solution. Not even Markdown styling is available in this fashion. The Arkham sheet as it stands has no styling on the characters' abilities, but the abilities in edit mode is a repeating section, and the display mode will show up to 3 rows from that repeating section (none of the built-in characters have more than 3 abilities, or 2 abilities and a footnote)
1477745352

Edited 1477755800
Quinn
Pro
Sheet Author
I feel like there might be something I could do with jQuery and directly setting HTML content blocks, but I don't know if r20 supports that, and  I don't know how I'd do that inside a repeating section... I could still be totally off-base here. e: Seems like I can't even put linebreaks in displayed strings.