Home >Web Front-end >JS Tutorial >javascript special string_javascript skills
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.