OLD | NEW |
1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
4 | 4 |
5 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
6 | 6 |
7 <!-- | 7 <!-- |
8 The <html-echo> injects given |content| into its innerHTML, bypassing HTML | 8 The <html-echo> injects given |content| into its innerHTML, bypassing HTML |
9 escaping, which is always made by Polymer when we insert the result of an | 9 escaping, which is always made by Polymer when we insert the result of an |
10 Polymer expression into element's body. | 10 Polymer expression into element's body. |
11 | 11 |
12 Example: | 12 Example: |
13 | 13 |
14 <html-echo content="<div>Hello</div>"></html-element> | 14 <html-echo content="<div>Hello</div>"></html-element> |
15 | 15 |
16 will be equivalent to: | 16 will be equivalent to: |
17 | 17 |
18 <span><div>Hello</div></span> | 18 <span><div>Hello</div></span> |
19 --> | 19 --> |
20 <dom-module name="html-echo"></dom-module> | 20 <dom-module name="html-echo"></dom-module> |
21 | |
OLD | NEW |