HTML example code, how to special character encoded with escape function
<!DOCTYPE html> <html> <body> <script> document.write(escape("EyeHunt tuorial!!!")); document.write("<br>"); document.write(escape("A tuorial site for develoeprs")); </script> </body> </html>
escape() is not strictly deprecated (as in “removed from the Web standards”), it is defined in Annex B of the ECMA-262 standard, whose introduction states:
Note: This function only encodes the special characters, this function is deprecated.
Exceptions: @ – + . / * _
Do comment if you have any doubts or suggestions on this JS escape topic.
Note: The All JS Examples codes are tested on the Firefox browser and the Chrome browser.
OS: Windows 10
Code: HTML 5 Version
Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology & like learning technical.