Expand HTML features in scene text elements

Currently the "Text" elements in the scene creator allow for the field to be set to "HTML" instead of "Plain Text". This currently allows for adjustments of the text like size/colour/bold etc, programmed directly into the text field with HTML code. however, this is very basic HTML support and would like to expand the option to include CSS styles so that text can be altered further, for instance the below doesn't currently work in the text field.

<p style="text-transform: capitalize;">%DEVMAN</p>

Where %DEVMAN = device manufacturer. Since this is a global variable I don't want to have to create another variable just to use variable convert on a built-in global variable.

Would alos be nice to have a list of all HTML features that the text item in scenes is capable of also in the help documentation.