Created
May 7, 2013 06:40
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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