protected function TMGMTFileFormatHTML::encodeIdSafeBase64 in Translation Management Tool 7
Returns base64 encoded data that is safe for use in xml ids.
File
- translators/
file/ tmgmt_file.format.html.inc, line 11
Class
- TMGMTFileFormatHTML
- Export into HTML.
Code
protected function encodeIdSafeBase64($data) {
// Prefix with a b to enforce that the first character is a letter.
return 'b' . rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
}