RawHTML

The RawHTML DSP widget displays HTML-encoded data in read-only fields as formatted text.

RawHTML widget
RawHTML widget showing HTML string: <p style="text-align: center;"><b>Raw</b> <span style="color: #9400d3">HTML</span></p>

Field value is: <p style="text-align: center;"><b>Raw</b> <span style="color: #9400d3">HTML</span></p>

Widget Summary
Logical Widget Name: RawHTML

RawHtml_updatable

Maps to Physical Widget : plain
Default definition: RawHTML=plain(rawhtml=true;clientsyntaxcheck=false)[syntax=ned,npr]

RawHTML_updatable=plain(rawhtml=true;clientsyntaxcheck=false)[syntax=npr]

Supported triggers and properties: See plain.
Use for: String field containing HTML-encoded data

Description

The RawHTML widget displays HTML-encoded data in read-only fields as formatted text. For example, product descriptions can be formatted into paragraphs, and use fonts and text styling codes.

The RawHTML widget ensures that the value of the field cannot be changed, either by the user or using JavaScript. This is ensured by the syntax settings NED and NPR.

If for some reason you do want to change the value for the field, you can do so if you using the RawText_updatable logical widget.

Widget Properties

The following restrictions apply:

  • For the Text Alignment (style:text-decoration) property, the value blink is not supported.