Help for this page
foreach ($text) { s/&/&/g; ... s/>/>/g; s/\n/<br>/g; }
foreach ($text) { s/&/&/g; ... s/>/>/g; $_ = "<pre>$_</pre>"; }