_locale_strip_quotes($string)
Removes the quotes and string concatenations from the string.
string $string: Single or double quoted strings, optionally concatenated by plus (+) sign.
string String with leading and trailing quotes removed.
function _locale_strip_quotes($string) { return implode('', preg_split('~(?<!\\\\)[\'"]\s*\+\s*[\'"]~s', substr($string, 1, -1))); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.module/function/_locale_strip_quotes/8.1.x