Fixing tag stripping in content previews.

This commit is contained in:
Samuel Clay 2016-01-11 18:25:23 -08:00
parent d034830007
commit 16caa91457
2 changed files with 2 additions and 2 deletions

View file

@ -221,7 +221,7 @@ def autologin(request, username, secret):
else:
return HttpResponseRedirect(reverse('index'))
@ratelimit(minutes=1, requests=24)
@ratelimit(minutes=1, requests=60)
@never_cache
@json.json_view
def load_feeds(request):

View file

@ -167,7 +167,7 @@ window.Inflector = {
// From Prototype.js. Strip out HTML tags.
stripTags : function(s) {
return $('<p>' + s + '</p>').text();
return _.string.escapeHTML($('<p>' + s + '</p>').text());
},
escapeRegExp : function(s) {