Entering content frame

Background documentation strMask Function Locate the document in its SAP Library structure

Purpose

Leaves special HTML characters uninterpreted.

Syntax

string strMask (in string string)

Parameters

string

String to be evaluated for presence of special HTML characters.

Return Value

This function returns the equivalent encoded characters of special HTML characters passed in the input string.

HTML provides escape symbols for many characters. The format of these symbols is &<string>; where <string> represents the relevant HTML character.

For example:

Therefore, if you pass the string <test to strMask , the return value is &lt;test

The Web browser displays <test because the < character remains uninterpreted.

Therefore, if you pass the string >test to strMask , the return value is &gt;test

The Web browser displays >test because the > character remains uninterpreted.

This is summarized in the following table:

Character

Escape symbol

Input string

Return value

Web browser

<

&lt;

<test

&lt;test

<test

>

&gt;

>test

&gt;test

>test

Example

`mystring="<test"`
`strMask (mystring)`
`write(mystring)`

Leaving content frame