projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c5404f
)
Port Fix for CRM-18474 to 4.6
author
Seamus Lee
<seamuslee001@gmail.com>
Wed, 25 May 2016 05:58:27 +0000
(
05:58
+0000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Wed, 25 May 2016 05:58:27 +0000
(
05:58
+0000)
ang/crmUtil.js
patch
|
blob
|
blame
|
history
diff --git
a/ang/crmUtil.js
b/ang/crmUtil.js
index b6a0d013104490866993547922f3a2a4368b7ea1..fd2d3611287034bfbb887f002d6ab76042a68b31 100644
(file)
--- a/
ang/crmUtil.js
+++ b/
ang/crmUtil.js
@@
-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 */