Skip to content

Instantly share code, notes, and snippets.

@VaclavSir
Created May 7, 2013 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VaclavSir/5530658 to your computer and use it in GitHub Desktop.
Save VaclavSir/5530658 to your computer and use it in GitHub Desktop.
Skript pro odstranění znaku "větší než" ze začátku řádků textu.
<?php
header('Content-type: text/html; charset=utf-8');
?>
<title>De-Quote</title>
<form method="post">
<textarea name="input" cols="80" rows="10"><?php echo htmlspecialchars(@$_POST['input']); ?></textarea><br>
<textarea name="output" cols="80" rows="10"><?php
if (isset($_POST['input'])) {
echo htmlspecialchars(
preg_replace('~^>\s~m', '', $_POST['input'])
);
}
?></textarea><br>
<input type="submit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment