export function createMarkup(text) {
return {__html: text.split('
').join('')}
}
export function transformHtml(text) {
let startHtml = {__html: text.split('').join('
').split('
')}
startHtml = startHtml.__html.filter((el)=> {
return (el != null && el != "" || el === 0)
})
const finalHtml = startHtml.map((item) => {
return `Описание опыта работы
${item.split('
')[0]}
`
})
return {__html: finalHtml.join('')}
}