質問するログイン新規登録

回答編集履歴

1

HTML修正

2018/02/15 07:12

投稿

x_x
x_x

スコア13749

answer CHANGED
@@ -1,9 +1,9 @@
1
1
  制御文字をはじく場合。
2
2
  ```HTML
3
- <input pattern="[^\x00-\x1f\x7f]*" />
3
+ <input type="text" pattern="[^\x00-\x1f\x7f]*" />
4
4
  ```
5
5
 
6
6
  ほかにもあるなら追加していけばいいのではないでしょうか。
7
7
  ```HTML
8
- <input type="text" name="a" pattern="[^\x00-\x1f\x7f&lt;&gt;&quot;%]*" />
8
+ <input type="text" pattern="[^\x00-\x1f\x7f&lt;&gt;&quot;%]*" />
9
9
  ```