4
I want a function that adds the tag <br>
when the text is not spaced,
I made a fiddle with the problem: https://jsfiddle.net/sc290ssn/.
This function can be done in Javascript or PHP.
<div class="post">
<p>kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk</p>
</div>
<h3>Queria uma função que deixe o texto acima igual ao texto abaixo.</h3>
<div class="post">
<p>kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk<br>kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk</p>
</div>
In this case it has no space and even so adds the <br>, you need to break when you reach a certain amount ?
– Gabriel Rodrigues
The goal is to even add the tag
<br>
or just "break" the word for the next line?– Chun
Hello Jonas, welcome to [en.so]. I noticed that you had several questions closed recently. I recommend that you read the guide [Ask] to increase your chances of getting a good answer.
– Math