Can't use inline CSS in stat block template

Closed
Feature
Statblocks Template Creator (Studio)
Reported by
alexandritegames
Opened
Assigned to
katerinach
Not a Bug

Description

Currently Twig strips out inline CSS from the statblock display template. I'd like to have a border color based on another input, which I know how to do, but when I write '<div class="description" style="border: 3px solid bordercolor ">' Twig strips out the word "style".

I believe this can be fixed by enabling inline_css from Twig: https://twig.symfony.com/doc/3.x/filters/inline_css.html.

Steps to Reproduce

<div class="description" style="border: 3px solid bordercolor ;">text </div> renders as <div class="description" ="border: 3px solid green;">text </div>

History

Comments and updates to this report

Tillerz
Hey,   why do you apply a style directly? This is not how it should be done. Just use the CSS section for the statblock and define the style there:  
.description { border: 3px solid black }
  or something.
katerinach Assignee
Assigned katerinach
katerinach Assignee

Indeed, we limit inline styling for security reasons, but you can freely use the styling field in the same page for everything you need!

katerinach Assignee
Added tag Not a Bug
katerinach Assignee
set this bug to closed