diff --git a/app/assets/javascripts/app/lib/app_post/utils.js.coffee b/app/assets/javascripts/app/lib/app_post/utils.js.coffee index d0a703d54..9a4609e10 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.js.coffee @@ -114,7 +114,7 @@ class App.Utils @_removeAttributes( html ) # remove tags & content - html.find('br, hr, img').remove() + html.find('hr, img').remove() # remove tags, keep content html.find('a').replaceWith( -> diff --git a/public/assets/tests/html-utils.js b/public/assets/tests/html-utils.js index 4b6bb427e..76621fb35 100644 --- a/public/assets/tests/html-utils.js +++ b/public/assets/tests/html-utils.js @@ -248,6 +248,11 @@ test( "htmlClanup", function() { result = App.Utils.htmlClanup( $(source) ) equal( result.html(), should, source ) + source = "

" + should = "
" + result = App.Utils.htmlClanup( $(source) ) + equal( result.html(), should, source ) + }); // wrap