Text formatting for tiles no longer works with 2026.1 Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Michel13
Posts: 88
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.4
Location: France
Contact:

Text formatting for tiles no longer works with 2026.1

Post by Michel13 »

Hello,

I installed the last version 2026.1 a few weeks ago. Thank you to all the contributors for this great work.

However, I'm having a problem displaying text and background colors on tiles.

I have a script that formats the text and background colors of a tile. The text is correctly sent to the device by the script, as I can see when I edit the device. It is also perfectly logged (the text is saved with its attributes). And yet, the text displayed in the tile is in the default format.

Here is an exemple of the text sent:
<div style='background-color: #CCE5FF; padding: 8px; border-radius: 4px;'><span style='color: #0047AB; font-weight: bold;'>Jour BLEU</span><br><span style='color: #0047AB; font-weight: bold;'>Bleu: 161/300</span> | <span style='font-weight: bold;'>Blanc: 38/43</span> | <span style='color: #CC0000; font-weight: bold;'>Rouge: 22/22</span></div>

This worked perfectly with the previous version.

Would it be possible to restore the text formatting of the tiles in the next version?
User avatar
gizmocuz
Posts: 3072
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Text formatting for tiles no longer works with 2026.1

Post by gizmocuz »

We had to protect the Text and Alert widgets against XSS attacks.
The span was already working in the beta version, the div element is now also allowed and will be working in the current beta version (17695)
Quality outlives Quantity!
Michel13
Posts: 88
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.4
Location: France
Contact:

Re: Text formatting for tiles no longer works with 2026.1

Post by Michel13 »

Thanks gizmocuz for your reply.

Althought I don't know what are span and div, what I understand is that this feature shall be restored in the next version.
Michel13
Posts: 88
Joined: Thursday 07 January 2016 19:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.4
Location: France
Contact:

Re: Text formatting for tiles no longer works with 2026.1

Post by Michel13 »

Installed 2026.2 and the issue is now solved.

Thanks to the team for the good job on this last release
Post Reply