Full thread0x0·A large chunk of that php code could probably be replaced with a call to https://www.php.net/wordwrapView on HN