mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix empty lines being removed after saving
This commit is contained in:
parent
a2c763661c
commit
9b69cd2aca
1 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,8 @@
|
|||
str = String(str);
|
||||
str = str.replace(/<!--(.*?)-->/g, '');
|
||||
str = str.replace(/<\/?(\?xml|meta|link|font|style|script|noscript|frame|noframes)\b[^>]*?>/ig, '');
|
||||
str = str.replace(/<br\s?\/?>/g, '').replace(/(<\/?)div(\W)/g, '$1p$2');
|
||||
str = str.replace(/<br\s*\/?>/g, '').replace(/(<\/?)div(\W)/g, '$1p$2');
|
||||
str = str.replace(/<p>\s*<\/p>/g, '<p> </p>');
|
||||
return str;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue