// Postupne pridavani do noveho pole
    let textPole = []
    for(let i=0; i < nezalomenyText.length; i++){
        if(i % delkaRadku == 0){
            textPole.push(nezalomenyText[i] + "<br>")
        } else {
            textPole.push(nezalomenyText[i])
        }
    }
    const zalomenyText = textPole.join("")
let zalomenyText = nezalomenyText
zalomenyText = zalomenyText.replaceAll(/[A-Z][^ ]*/g,"xxxx")
let textPole = Array.from(nezalomenyText)
for(let i=0; i < textPole.length; i++){
   if(i % 3 == 0){
    textPole[i]="."
   }
}
const zalomenyText = textPole.join("")
let textPole = Array.from(nezalomenyText)
for(let i=0; i < textPole.length; i++){
   if(i % delkaRadku == 0){
    textPole[i] = textPole[i] + "<br>"
   }
}
const zalomenyText = textPole.join("")
// todo: udelej zmeny
let textPole = []
for(let i=0; i < nezalomenyText.length; i++){
   if(i % delkaRadku == 0){
    textPole.push(nezalomenyText[i] + "<br>")
   } else {
    textPole.push(nezalomenyText[i])
   }
}
const zalomenyText = textPole.join("")
 
 
let textPole = []
for(const [i, znak] of Array.from(nezalomenyText).entries()){
    let nahrada = znak
    if(nahrada == " "){
        nahrada = "&nbsp;" // non-breakable space
    }
 
    if(i % delkaRadku == 0 && i != 0){
        textPole.push("<br>" + nahrada)
    } else {
        textPole.push(nahrada)
    }
}
const zalomenyText = textPole.join("")