blob: 6c92db87d195ab9697d047a99f3f2a6f7f471475 [file] [log] [blame]
<!--
This in an HTML Import-able file that contains the JS and HTML Templates for
the linkify-sk element.
To use this file import it:
<link href="/res/imp/linkify-sk.html" rel="import" />
Properties:
text - The text to linkify.
Methods:
None.
Events:
None.
-->
<link rel="import" href="/res/imp/bower_components/polymer/polymer.html">
<dom-module id="linkify-sk">
<template>
<span id="linkifiedText"></span>
<span id="sanitized" style="display:none">{{text}}</span>
</template>
<script>
(function() {
Polymer({
is: "linkify-sk",
properties: {
text: {
type: String,
value: "",
observer: "_linkify",
},
},
_linkify: function() {
this.$.linkifiedText.innerHTML = sk.formatHTML(this.$.sanitized.innerHTML, true);
}
});
}());
</script>
</dom-module>