I am using a multiple text input to let my users type a text.
However, I would like to save it into my DB withtout linebreak because it breaks my PDF plugin.
Do you know how do to that ? I tried with find and replace but it doesn’t really cover all posibilites (more than 1 break line) and thought about regex but not sure how to do it.
Hi there, @Newman… I don’t pretend to be an expert when it comes to regex, but I did some testing, and using find and replace to find this expression and replace it with a space seems to do the trick.
Hi.
Not an expert also, but I also found out that find&replace regex \s with nothing removes all whitespace characters: space, tab, newline, carriage return, vertical tab.