41.11 ESCAPE Function
This function is used if you have checked the standard attribute "Has Escape Output Attribute" option for your item type plug-in which allows a developer to decide if the output should be escaped or not.
Syntax
APEX_PLUGIN_UTIL.ESCAPE (
p_value IN VARCHAR2,
p_escape IN BOOLEAN)
RETURN VARCHAR2;
Parameters
Table 41-12 ESCAPE Parameters
Parameter | Description |
---|---|
|
This is the value you want to escape depending on the |
|
If set to |
Example
This example outputs all values of the array l_display_value_list
as a HTML list and escapes the value of the array depending on the setting the developer as picked when using the plug-in.
for i in 1 .. l_display_value_list.count
loop
sys.htp.prn (
'<li>'||
apex_plugin_util.escape (
p_value => l_display_value_list(i),
p_escape => p_item.escape_output )||
'</li>' );
end loop;
Parent topic: APEX_PLUGIN_UTIL