45.52 REPLACE_SUBSTITUTIONS Function
This function replaces any &ITEM. substitution references with their actual value. If p_escape is set to TRUE, any special characters contained in the value of the referenced item are escaped to prevent Cross-site scripting (XSS) attacks.
Syntax
APEX_PLUGIN_UTIL.REPLACE_SUBSTITUTIONS (
p_value IN VARCHAR2,
p_escape IN BOOLEAN DEFAULT TRUE )
RETURN VARCHAR2;Parameters
| Parameter | Description |
|---|---|
p_value |
This value is a string which can contain several &ITEM. references which are replaced by their actual page item values.
|
p_escape |
If set to TRUE any special characters contained in the value of the referenced item are escaped to prevent Cross-site scripting (XSS) attacks. If set to FALSE, the referenced items are not escaped.
|
Example
The following example replaces any substitution syntax references in the region plug-in attribute 05 with their actual values. Any special characters in the values are escaped.
l_advanced_formatting := apex_plugin_util.replace_substitutions (
p_value => p_region.attribute_05,
p_escape => true );Parent topic: APEX_PLUGIN_UTIL