0

I have the html page with the following input tag. I want to add an apostrophe ' in this pattern.

<input pattern='^[,.’'()а-яА-ЯёЁ\\-0-9\"№?!;: iIіІўЎ]+$'  type='text'/>

But when I see it in browser DevTools (Google Chrome 45.0) I get the following input tag

<input pattern="^[,.’" ()а-яА-ЯёЁ\-0-9"№?!;:="" iiіІўЎ]+$'="" type="text"/>

So my pattern ends on my apostrophe and looks like pattern="^[,.’".

I tried to set \', but it didn't help. I really need some good advice how to do this. Thanks.

EDIT JSFiddle

olgacosta
  • 1,076
  • 4
  • 15
  • 36

1 Answers1

0

Look at this response. Use hexadecimal notation or unicode notation for that char as you would in JavaScript.

Community
  • 1
  • 1
David Strencsev
  • 1,065
  • 11
  • 11