I think I understand what the use-case is… If the browser doesn't know anything about <script> tag, it is supposed to interpret it's contents as html… In which case, html-tags which appear in javascript code will actually become active ones
The common practice for dealing with this problem is using "comments"… http://www.webdevout.net/articles/escaping-style-and-script-data I still can't figure out any other usecase -- Alexey Zakhlestin http://blog.milkfarmsoft.com/