lib/YuiRestClient/Sanitizer.pm

NAME

YuiRestClient::Sanitizer - remove '&' from labels

COPYRIGHT

Copyright 2021 SUSE LLC

SPDX-License-Identifier: FSFAP

AUTHORS

QE Yam <qe-yam at suse de>

SYNOPSIS

$item = '&OK';
$item = YuiRestClient::Sanitizer::sanitize($item); 

DESCRIPTION

Overview

This method removes the '&' from widget labels. The '&' is used in UI widgets to mark the hot key that is assigned to the widget, for example '&OK' to label an OK button.

Class and object methods

sanitize($item) - remove first '&' from item.