|
@@ -210,9 +210,9 @@ https://github.com/Bernardo-Castilho/dragdroptouch -->
|
|
|
|
|
|
// end RuleBuilder functions
|
|
|
|
|
|
- // Removes all HTML content
|
|
|
+ // Removes all HTML content, replacing line break tags with newlines
|
|
|
function stripHTML(input) {
|
|
|
- input = input.replace(/(<([^>]+)>)/ig,'');
|
|
|
+ input = input.replace(/<br ?\/?>/ig, "\n").replace(/(<([^>]+)>)/ig,'');
|
|
|
return input;
|
|
|
}
|
|
|
|