How can I display the title with spans as HTML not plain text.
Code:
spanTitle() {
return this.title.replace(/([A-Za-z0-9'<>/]+)/g, '<span>$1</span>');
}
{{ spanTitle }}
this.title = "Upcomming Events"
spanTitle currently displays as:
<span>Upcomming</span> <span>Events</span>