- 0
HTML/JS encoding question
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft explains how to download and install the new "10 times faster" TypeScript
By hellowalkman,
- microsoft
- typescript
- (and 7 more)
- 0 replies
- 0 views
-
- 2 replies
- 0 views
-
JavaScript devs beware: this very popular NPM package has been compromised by attackers
By David Uzondu,
- javascript
- axios
- (and 2 more)
- 0 replies
- 0 views
-
AI's impact on programming language popularity revealed
By zikalify,
- ieee
- programming languages
- (and 7 more)
- 3 replies
- 0 views
-
Over 300 npm packages compromised by self-replicating worm
By David Uzondu,
- javascript
- npm
- (and 3 more)
- 8 replies
- 0 views
-
Question
eliokh
Hello,
I need to ask a small question about character encoding in HTML.
When submitting a form, i am doing a client side validation that will read all data from the form and "Escape" it in a way to transform < into > single quotes to ' etc .
[/size]
[size=3][font=arial, helvetica, sans-serif]now the problem arises when i have for example a submit button with value "J'accept". When clicking it , its value becomes J'accepte.[/font]
[font=arial, helvetica, sans-serif]What function in javascript should i add so the display is not modified?[/font]
[font=arial, helvetica, sans-serif]thank you in advance.[/font][/size]
Link to comment
https://www.neowin.net/forum/topic/1120586-htmljs-encoding-question/Share on other sites
3 answers to this question
Recommended Posts