Home > Web Front-end > JS Tutorial > javascript special string_javascript skills

javascript special string_javascript skills

WBOY
Release: 2016-05-16 18:55:40
Original
1014 people have browsed it

For example:

";

There will be an error here. You must escapeHTML.

For:

Anyway, escapeJavascript filters it out. Single quotes. If there may be a <script> <BR>var t="</script> tag in the memo, escapeHTML is required, otherwise it is not needed. Of course, using tb-velocity does not require calling escapeHTML yourself.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template