Skip to content

Commit

Permalink
see #15
Browse files Browse the repository at this point in the history
Fixed a problem with overzealous text-node removal
  • Loading branch information
mario committed Apr 5, 2014
1 parent 53a770c commit 93c2331
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions purify.js
Expand Up @@ -156,6 +156,9 @@
/* Merge configuration parameters */
cfg.ADD_ATTR ? ALLOWED_ATTR = ALLOWED_ATTR.concat(cfg.ADD_ATTR) : null;
cfg.ADD_TAGS ? ALLOWED_TAGS = ALLOWED_TAGS.concat(cfg.ADD_TAGS) : null;

/* Add #text in case KEEP_CONTENT is set to true */
KEEP_CONTENT ? ALLOWED_TAGS.push('#text') : null;
};

/**
Expand Down

0 comments on commit 93c2331

Please sign in to comment.