Tornado 6.5 Documentationform of escaping is context-dependent; Tornado’s templates are not aware of the syntax of HTML, JavaScript, etc, and so the template developer must sometimes explicitly apply the correct escaping function HTML body content (but not attribute values). In other cases, other functions should be used. In JavaScript, use the json_encode function, e.g. . json_encode used to escape strings, numbers, lists, and dicts. In this example, the JavaScript variable x will be the corresponding JavaScript 28 Chapter 6. Documentation Tornado Documentation, Release 6.5.1 type0 码力 | 272 页 | 1.12 MB | 10 月前3
Tornado 4.5 Documentation
vulnerabilities, it is not sufficient in all cases. Expressions that appear in certain locations, such as in Javascript or CSS, may need additional escaping. Additionally, either care must be taken to always use double function calls to render components of your page, and they can come packaged with their own CSS and JavaScript. For example, if you are implementing a blog, and you want to have blog entries appear on both show_comments=True) % } Modules can include custom CSS and JavaScript functions by overriding the embedded_css, embedded_javascript, javascript_files, or css_files methods: class Entry(tornado.web.UIModule):0 码力 | 222 页 | 833.04 KB | 2 年前3
Tornado 4.5 Documentation
vulnerabilities, it is not sufficient in all cases. Expressions that appear in certain locations, such as in Javascript or CSS, may need additional escaping. Additionally, either care must be taken to always use double function calls to render components of your page, and they can come packaged with their own CSS and JavaScript. For example, if you are implementing a blog, and you want to have blog entries appear on both show_comments=True) %} Modules can include custom CSS and JavaScript functions by overriding the embedded_css, embedded_javascript, javascript_files, or css_files methods: class Entry(tornado.web.UIModule):0 码力 | 333 页 | 322.34 KB | 2 年前3
Tornado 6.1 Documentation
vulnerabilities, it is not sufficient in all cases. Expressions that appear in certain locations, such as in JavaScript or CSS, may need additional escaping. Additionally, either care must be taken to always use double function calls to render components of your page, and they can come packaged with their own CSS and JavaScript. For example, if you are implementing a blog, and you want to have blog entries appear on both show_comments=True) % } Modules can include custom CSS and JavaScript functions by overriding the embedded_css, embedded_javascript, javascript_files, or css_files methods: class Entry(tornado.web.UIModule):0 码力 | 245 页 | 904.24 KB | 2 年前3
Tornado 6.2 Documentation
vulnerabilities, it is not sufficient in all cases. Expressions that appear in certain locations, such as in JavaScript or CSS, may need additional escaping. Additionally, either care must be taken to always use double function calls to render components of your page, and they can come packaged with their own CSS and JavaScript. For example, if you are implementing a blog, and you want to have blog entries appear on both show_comments=True) %} Modules can include custom CSS and JavaScript functions by overriding the embedded_css, embedded_javascript, javascript_files, or css_files methods: class Entry(tornado.web.UIModule):0 码力 | 260 页 | 1.06 MB | 2 年前3
Tornado 5.1 Documentation
vulnerabilities, it is not sufficient in all cases. Expressions that appear in certain locations, such as in Javascript or CSS, may need additional escaping. Additionally, either care must be taken to always use double function calls to render components of your page, and they can come packaged with their own CSS and JavaScript. For example, if you are implementing a blog, and you want to have blog entries appear on both show_comments=True) % } Modules can include custom CSS and JavaScript functions by overriding the embedded_css, embedded_javascript, javascript_files, or css_files methods: class Entry(tornado.web.UIModule):0 码力 | 243 页 | 895.80 KB | 2 年前3
Tornado 6.0 Documentation
vulnerabilities, it is not sufficient in all cases. Expressions that appear in certain locations, such as in Javascript or CSS, may need additional escaping. Additionally, either care must be taken to always use double function calls to render components of your page, and they can come packaged with their own CSS and JavaScript. For example, if you are implementing a blog, and you want to have blog entries appear on both show_comments=True) % } Modules can include custom CSS and JavaScript functions by overriding the embedded_css, embedded_javascript, javascript_files, or css_files methods: class Entry(tornado.web.UIModule):0 码力 | 245 页 | 885.76 KB | 2 年前3
Tornado 6.5 Documentationform of escaping is context-dependent; Tornado’s templates are not aware of the syntax of HTML, JavaScript, etc, and so the template developer must sometimes explicitly apply the correct escaping function HTML body content (but not attribute values). In other cases, other functions should be used. In JavaScript, use the json_encode function, e.g. .json_encode used to escape strings, numbers, lists, and dicts. In this example, the JavaScript variable x will be the corresponding JavaScript type (string, number, array, or object), and not the JSON-encoded string0 码力 | 437 页 | 405.14 KB | 10 月前5
Tornado 6.4 Documentation
vulnerabilities, it is not sufficient in all cases. Expressions that appear in certain locations, such as in JavaScript or CSS, may need additional escaping. Additionally, either care must be taken to always use double function calls to render components of your page, and they can come packaged with their own CSS and JavaScript. For example, if you are implementing a blog, and you want to have blog entries appear on both show_comments=True) %} Modules can include custom CSS and JavaScript functions by overriding the embedded_css, embedded_javascript, javascript_files, or css_files methods: class Entry(tornado.web.UIModule):0 码力 | 268 页 | 1.09 MB | 2 年前3
Tornado 6.4 Documentation
vulnerabilities, it is not sufficient in all cases. Expressions that appear in certain locations, such as in JavaScript or CSS, may need additional escaping. Additionally, either care must be taken to always use double function calls to render components of your page, and they can come packaged with their own CSS and JavaScript. For example, if you are implementing a blog, and you want to have blog entries appear on both show_comments=True) %} Modules can include custom CSS and JavaScript functions by overriding the embedded_css, embedded_javascript, javascript_files, or css_files methods: class Entry(tornado.web.UIModule):0 码力 | 268 页 | 1.09 MB | 2 年前3
共 20 条
- 1
- 2
相关搜索词
Tornado框架异步HTTP客户端WebSocket协议模块改进新功能Tornado异步网络库Web框架长连接协程tornado.webtornado.httpservertornado.iostreamtornado.concurrenttornado.websocketPython Web FrameworkAsynchronous NetworkingHTTP ServerCoroutine LibraryHTTP服务器WSGI支持协程库异步非阻塞I/OHTTP服务器和客户端IOLoopDeprecationCallbackType AnnotationPython Compatibility非阻塞I/O长轮询WebSocket事件循环高并发连接













