OLD | NEW |
| 1 <link rel="import" href="polymer/polymer/polymer.html"> |
1 <!-- | 2 <!-- |
2 The <html-echo> injects given |content| into its innerHTML, bypassing HTML | 3 The <html-echo> injects given |content| into its innerHTML, bypassing HTML |
3 escaping, which is always made by Polymer when we insert the result of an | 4 escaping, which is always made by Polymer when we insert the result of an |
4 Polymer expresion into element's body. | 5 Polymer expresion into element's body. |
5 | 6 |
6 Example: | 7 Example: |
7 | 8 |
8 <html-echo content="<div>Hello</div>"></html-element> | 9 <html-echo content="<div>Hello</div>"></html-element> |
9 | 10 |
10 will be equivalent to: | 11 will be equivalent to: |
11 | 12 |
12 <span><div>Hello</div></span> | 13 <span><div>Hello</div></span> |
13 --> | 14 --> |
14 <polymer-element name="html-echo" attributes="content"></polymer-element> | 15 <polymer-element name="html-echo" attributes="content"></polymer-element> |
OLD | NEW |