Added new test.
This commit is contained in:
parent
9f9964a938
commit
64e938b701
2 changed files with 6 additions and 1 deletions
|
@ -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( ->
|
||||
|
|
|
@ -248,6 +248,11 @@ test( "htmlClanup", function() {
|
|||
result = App.Utils.htmlClanup( $(source) )
|
||||
equal( result.html(), should, source )
|
||||
|
||||
source = "<div><br></div>"
|
||||
should = "<br>"
|
||||
result = App.Utils.htmlClanup( $(source) )
|
||||
equal( result.html(), should, source )
|
||||
|
||||
});
|
||||
|
||||
// wrap
|
||||
|
|
Loading…
Reference in a new issue