Rebuild new layout.

This commit is contained in:
James Cole
2021-04-08 11:21:20 +02:00
parent 6160f99e92
commit 56dff7ea67
70 changed files with 2135 additions and 772 deletions

View File

@@ -34,15 +34,16 @@ use Log;
trait ConvertsDataTypes
{
/**
* Remove weird chars from strings.
* @param string|null $string
* @param bool $keepNewlines
*
* @param string $string
* @param bool $keepNewlines
*
* @return string
* @return string|null
*/
public function clearString(string $string, bool $keepNewlines = true): string
public function clearString(?string $string, bool $keepNewlines = true): ?string
{
if(null === $string) {
return null;
}
$search = [
"\u{0001}", // start of heading
"\u{0002}", // start of text