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

javascript special string_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:55:401009browse

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.

Statement:
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