##// END OF EJS Templates
dependencies: bumped / freeze some libraries to make rhodecode-tools/vcsserver in sync...
dependencies: bumped / freeze some libraries to make rhodecode-tools/vcsserver in sync - pyparsing-2.4.5 - pyasn1-0.4.8 - pluggy-0.13.1 - contextlib2-0.6.0.post1 - attrs-19.3.0

File last commit:

r3192:689a0c93 merge stable
r4113:10cc3443 default
Show More
rhodecode-unsafe-html.js
30 lines | 651 B | application/javascript | JavascriptLexer
import {PolymerElement, html} from '@polymer/polymer/polymer-element.js';
export class RhodecodeUnsafeHtml extends PolymerElement {
static get is() {
return 'rhodecode-unsafe-html';
}
static get template() {
return html`
<style include="shared-styles"></style>
<slot></slot>
`;
}
static get properties() {
return {
text: {
type: String,
observer: '_handleText'
}
}
}
_handleText(newVal, oldVal) {
this.innerHTML = this.text;
}
}
customElements.define(RhodecodeUnsafeHtml.is, RhodecodeUnsafeHtml);