From eebc4b09ee139a232a236b46c0f5a60fcc810222 Mon Sep 17 00:00:00 2001 From: tim b Date: Sat, 29 May 2010 21:15:13 -0700 Subject: admins can post html if wrapped in safe element --- static/js/pichat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'static') diff --git a/static/js/pichat.js b/static/js/pichat.js index 8b088db..6046e86 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -169,7 +169,8 @@ function removeOldMessages(){ } function buildMsgContent(content) { - return linkify(escapeHtml(content)); + if (content.substr(0,6) == "") return content.substr(6,content.length - 13) + else return linkify(escapeHtml(content)); } // todo: -- cgit v1.2.3-70-g09d2