User:Arthurtilly/chat.js

$('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "/div"; {            var query = this.value.replace('/div ', );            var query = query.replace(/<\/span>/g,'[/c]').replace(/ /g, ).replace(/<\/div>/g, '').replace(//g,'"]');            this.value = query;        }    } });