I was just wondering how I could exactly remove white space or even character by row and position inside row. I can't find info about this but I think that the PHP trim()
could help. Also I was thinking about a solution for dynamic text. Where I want do delete all line's which are empty. Or just some of them.
An example:
> here is text blabla
>
> here is text balabla balabala
>
1
2
3
> oops too much space
>
> also here is text
Now how can I strip the 3 white spaces away?
It has to become something like this:
> here is text blabla
>
> here is text balabla balabala
>
> oops too much space
>
> also here is text