diff --git a/files/routes/admin.py b/files/routes/admin.py
index 3f6838307..2628f48fb 100644
--- a/files/routes/admin.py
+++ b/files/routes/admin.py
@@ -140,6 +140,16 @@ def _moveacc(old_id, new_id):
print(e, flush=True)
abort(500, str(e))
+ update_statement = f'''update submissions set body_html=replace(body_html, '', '') where body_html like '%%';
+ update comments set body_html=replace(body_html, '', '') where body_html like '%%';
+ update subs set sidebar_html=replace(sidebar_html, '', '') where sidebar_html like '%%';
+ update users set bio_html=replace(bio_html, '', '') where bio_html like '%%';
+ update users set sig_html=replace(sig_html, '', '') where sig_html like '%%';
+ update users set friends_html=replace(friends_html, '', '') where friends_html like '%%';
+ update users set enemies_html=replace(enemies_html, '', '') where enemies_html like '%%';
+ '''
+ db.execute(update_statement)
+
online = cache.get(CHAT_ONLINE_CACHE_KEY)
cache.clear()
cache.set(CHAT_ONLINE_CACHE_KEY, online)