[docs] Actually prevent input from having injected markup in chat example (#2987)

This commit is contained in:
Haku
2017-08-27 14:40:26 +08:00
committed by Damien Arrachequesne
parent 3684d590f5
commit 3386e155a8

View File

@@ -146,7 +146,7 @@ $(function() {
// Prevents input from having injected markup
function cleanInput (input) {
return $('<div/>').text(input).text();
return $('<div/>').text(input).html();
}
// Updates the typing event