Skip to content

Commit

Permalink
Merge pull request civicrm#31 from seamuslee001/CRM-18474-fuzion
Browse files Browse the repository at this point in the history
Port Fix for CRM-18474 to 4.6
  • Loading branch information
eileenmcnaughton committed May 25, 2016
2 parents d3f6243 + 41a6120 commit 25fb030
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ang/crmUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
var deferred = $q.defer();
var p;
var backend = crmApi.backend || CRM.api3;
if (params && params.body_html) {
// CRM-18474 - remove Unicode Character 'LINE SEPARATOR' (U+2028)
// and 'PARAGRAPH SEPARATOR' (U+2029) from the html if present.
params.body_html = params.body_html.replace(/([\u2028]|[\u2029])/g, '\n');
}
if (_.isObject(entity)) {
// eval content is locally generated.
/*jshint -W061 */
Expand Down

0 comments on commit 25fb030

Please sign in to comment.