Double or Single Quotes in WordPress Content Conflicting With HTML

You need to escape the value for use in an HTML attribute with esc_attr():

echo "<input style="width:450px;" type="text" placeholder="The Title" name="the_title" value="" . esc_attr( $val ). ""></input>";

tech