Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 79 - Sanitize  (Read 4209 times)
Reuben B.
Four Js
Posts: 1116


« 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/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines