I just want ask if how I will block special characters such as <,>,",/,etc. in html input field?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
Why not use html5?
You can explicitly state which characters you accept HTML input pattern Attribute
If you insist on blocking specific characters you can use the following:
You can use regex.