How can I bind a text which contains url as html. Is it possible by using the following code ?
@CustomTag('my-element')
class MyElement extends PolymerElement {
@observable String text = "Bla bla bla '<a href="mysite.com">link</a>';"
MyElement.created() : super.created();
}
<polymer-element name="my-element">
<meta charset="utf-8">
<template>
<p>
{{text}}
</p>
</template>
<script type="application/dart" src="my_element.dart"></script>
</polymer-element>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…