I have a text field that stores a value in database. When I input inverted commas i.e " " or apostrophe i.e. '' it automatically adds back slash to my string. How to remove back slashes or inverted commas and apostrophe?
<?php
if (empty($_POST['video_title'])) {
$error[] = 'You must enter a video title';
} else {
$vid_title = mysqli_real_escape_string($conn, $_POST['video_title']);
}
?>