A simple, no-frills quote generator that puts "> " before each line of a text.
* Link: https://wiki.helmutkaczmarek.de/code:php:qgen
*/
if(isset($_POST['submit'])) {
// Retrieve text from clipboard
$text = $_POST['text'];
// Expand each line with "> " at the beginning
$lines = explode("\n", $text);
$modifiedText = '';
foreach($lines as $line) {
$modifiedText .= "> " . $line . "\n";
}
// Show the modified text
echo "