-4

i have this input

<input type="text" class="form-control" value="כפר חב"ד" name="city" >

my problem is when the value is insert in to the db i get this כפר חב the last letter and the " sing is gone how can I make it work?

Tyler Roper
  • 21,445
  • 6
  • 33
  • 56
user10498931
  • 25
  • 1
  • 5
  • 1
    Replace the `"` with `"`. Possible duplicate of [How to properly escape quotes inside html attributes?](https://stackoverflow.com/questions/4015345/how-to-properly-escape-quotes-inside-html-attributes) – Tyler Roper Jul 22 '19 at 19:36

1 Answers1

1

Change the double quotes on the outside to single quotes:

<input type="text" class="form-control" value='כפר חב"ד' name="city" >
Caleb
  • 572
  • 1
  • 7
  • 25