diff options
| author | tim b <timb@camcompu.home> | 2010-05-29 21:15:13 -0700 |
|---|---|---|
| committer | tim b <timb@camcompu.home> | 2010-05-29 21:15:13 -0700 |
| commit | eebc4b09ee139a232a236b46c0f5a60fcc810222 (patch) | |
| tree | 2b2bbd8511cf2b2da2d0f64f31a029edce76e419 /static | |
| parent | dd8baca6e085e4d08ea76a191a18543351caa877 (diff) | |
admins can post html if wrapped in safe element
Diffstat (limited to 'static')
| -rw-r--r-- | static/js/pichat.js | 3 |
1 files changed, 2 insertions, 1 deletions
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) == "<safe>") return content.substr(6,content.length - 13) + else return linkify(escapeHtml(content)); } // todo: |
