Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on June 17, 2021, 04:54:06 am



Title: Ask Reuben 79 - Sanitize
Post by: Reuben B. on June 17, 2021, 04:54:06 am
LABEL, TEXTEDIT, and MESSAGE all have the ability to set a Presentation Style so that any html in the displayed value is interpreted and rendered as html.  This was intended so that you can do some simple decoration such as bold, italics etc by surrounding the text with the appropriate html tag.

A recent enhancement tightened up the security around these widgets and sanitized the tags, attributes, and CSS that were able to used.  Something that was prevented from being used was mailto links that could be used in html Labels

A recent Presentation Style addition enables you to turn on or off this sanitization procedure so that you can allow additional tags, attributes, CSS through if you believe it is safe.

To read more, click https://4js.com/ask-reuben/ig-79/