I am using the Nebular chat component and it is working fine.
But I am unable to send HTML message in that. Such as
Hello world Hello World
Can you please help to achieve this in the nebular chat?
Edit 1
This is sample code for send message :
this.messages.push({
text: "Hello world",
date: new Date(),
reply: true,
type: files.length ? 'file' : 'text',
files: files,
user: {
name: 'Jonh Doe',
avatar: 'https://i.gifer.com/no.gif',
},
});
Output: Hello world
For sending HTML message I have tried below code
this.messages.push({
text: <b>Hello World</b>,
date: new Date(),
reply: true,
type: files.length ? 'file' : 'text',
files: files,
user: {
name: 'Jonh Doe',
avatar: 'https://i.gifer.com/no.gif',
},
});
Output :<b>Hello world</b>
It is printing HTML character in the message