A2v10 Platform documentation
UK


HTML Element

Represents a piece of text that displays html markup.

Inherits: Inline : UIElement : UIElementBase

Content property: Content

Properties

Name Type Description
Content String Content property. Text content. HTML tags are allowed.
Basic element properties

Description

It is inconvenient to use html markup when working directly with xaml. All html tags have to be escaped. For example, if you want to display text in bold, you have to write code like this:


Instead, it is much more convenient to use XAML elements:

Or to use a CDATA element:
		
Most often this element is used to display html-text obtained, for example, from a database.

Note! Never try to display html code entered by the user or received from an external source. Although the system excludes potentially dangerous fragments such as scripts or frames from such code, the markup may be irreversibly corrupted.