[ create a new paste ] login | about

Link: http://codepad.org/qoJfHPI9    [ raw code | output | fork | 4 comments ]

martin@mustbebuilt.co.uk - PHP, pasted on Jun 25:
1
2
3
4
5
<?php
$myString = "<p>This is a paragraph.<br><script>alert('yo')</script></p>";
$myCleanString = strip_tags($myString, '<br><p>');
echo $myCleanString;
?>


Output:
1
<p>This is a paragraph.<br>alert('yo')</p>


Create a new paste based on this one


Comments:
posted by demecdssg@Đgsd8dsf on Jun 11
dd
reply
posted by 123 on Jan 20
121
reply
posted by mabena on Dec 17
test
reply
posted by mabena on Dec 17
reply the test
reply