private static function normaliseActionString($actionType, $actionString)
    {
        $actionString = Common::unsanitizeInputValue($actionString);

        if (self::isActionTypeStoredUnsanitized($actionType)) {
            return $actionString;
        }

        return Common::sanitizeInputValue($actionString);
    }
private static function normaliseActionString($actionType, $actionString)
    {
        $actionString = Common::unsanitizeInputValue($actionString);

        if (self::isActionTypeStoredUnsanitized($actionType)) {
            return $actionString;
        }

        return Common::sanitizeInputValue($actionString);
    }
private static function normaliseActionString ( $ actionType , $ actionString ) { $ actionString = Common :: unsanitizeInputValue ( $ actionString ) ; if ( self :: isActionTypeStoredUnsanitized ( $ actionType ) ) { return $ actionString ; } return Common :: sanitizeInputValue ( $ actionString ) ; }
This function will sanitize or not if it's needed for the specified action type

URLs (Download URL, Outlink URL) are stored raw (unsanitized)
while other action types are stored Sanitized

@param $actionType
@param $actionString
@return string
This function will sanitize or not if it s needed for the specified action type