From a6fbff577ef80f49db44ed66e9efcd8b5ca846c1 Mon Sep 17 00:00:00 2001 From: tim b Date: Mon, 14 Jun 2010 22:33:00 -0700 Subject: annoying caps --- static/js/pichat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pichat.js b/static/js/pichat.js index 3659d37..fefaca1 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -47,7 +47,8 @@ function isCSSPropertySupported(prop){ return prop in document.body.style } function escapeHtml(txt) { if (!txt) { return ""; } - else { return $("").text(txt).html(); } + txt = annoyingCaps(txt) + return $("").text(txt).html() } URLRegex = /((\b(http\:\/\/|https\:\/\/|ftp\:\/\/)|(www\.))+(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi; @@ -68,7 +69,6 @@ function getImagesAsArray(text) { function linkify(text) { LastMsgContainsImage = false - text = annoyingCaps(text) text = text.replace(URLRegex, linkReplace); return text } -- cgit v1.2.3-70-g09d2