Remove empty paragraph tag
This commit is contained in:
parent
f43bf922ca
commit
f554ad4d47
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export function stripRteStyle(stringWithStyleTag) {
|
||||||
* @returns {string} converted string wrapped in an <ol>
|
* @returns {string} converted string wrapped in an <ol>
|
||||||
*/
|
*/
|
||||||
export function createOrderedListFromStringOfParagraphs(stringOfParagraphs) {
|
export function createOrderedListFromStringOfParagraphs(stringOfParagraphs) {
|
||||||
return `<ol>${stringOfParagraphs.replaceAll('<p>', '<li>').replaceAll('</p>', '</li>')}</ol>`;
|
return `<ol>${stringOfParagraphs.replaceAll('<p></p>', '').replaceAll('<p>', '<li>').replaceAll('</p>', '</li>')}</ol>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue