Skip to content

Commit

Permalink
fix(taSanitize): fix also container (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
marbug committed Dec 12, 2014
1 parent 2b94c7c commit a49600d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/factories.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ angular.module('textAngular.factories', [])
if ( !ignore ) {
try {
var jq_container = angular.element('<div>' + unsafe + '</div>');
fixElement( jq_container );
fixChildren( jq_container );
unsafe = jq_container.html();
} catch (e) {
Expand Down
1 change: 1 addition & 0 deletions src/textAngular.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ angular.module('textAngular.factories', [])
if ( !ignore ) {
try {
var jq_container = angular.element('<div>' + unsafe + '</div>');
fixElement( jq_container );
fixChildren( jq_container );
unsafe = jq_container.html();
} catch (e) {
Expand Down

0 comments on commit a49600d

Please sign in to comment.