. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; /** * NOTE can be text or an XREF. */ class NoteStructure extends AbstractElement { /** * Convert a value to a canonical form. * * @param string $value * * @return string */ public function canonical(string $value): string { // Browsers use MS-DOS line endings in multi-line data. return strtr($value, ["\r\n" => "\n", "\r" => "\n"]); } }