onTool_QuoteAttVal_Value()

onTool_QuoteAttVal_Value()

This function executes for every attribute value being processed by the Quick Quote Attribute Values Tool. It allows attribute value modification, like search & replace operations with the replaceString[No]Case() functions. (New v10.9914)

$attvalue - the attribute value (not including any enclosing quotation marks)

$quotechar - the quotation character to surround the attribute value in (default is the double quote character)

Example:

// When using the Quick Quote Attribute Values Tool, convert
// some characters to character references.
function onTool_QuoteAttVal_Value() {
 $attvalue=replaceStringCase($attvalue,'<','&lt;');
 $attvalue=replaceStringCase($attvalue,'"','&quot;');
 $attvalue=replaceStringCase($attvalue,'\'','&apos;');
}