Remove the backslash:
<?php
echo stripslashes("Who\'s Peter Griffin?");
?>
Try it Yourself »
The stripslashes() function removes backslashes added by the addslashes() function.
Tip: This function can be used to clean up data retrieved from a database or from an HTML form.
stripslashes(
string)
Parameter | Description |
---|---|
string | Required. Specifies the string to check |
Return Value: | Returns a string with backslashes stripped off |
---|---|
PHP Version: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!