If I have a textarea like the one I’m using to type this message. I would like to append or concat a ‘>’ to every line that breaks. The problem I am having is that I don’t know where the lines break. What I want to do is emulate an email message when someone replies, they see ‘>’ appended to every line. Is there a function for this?
Thanks.
If it’s for an email message, you could take a string and use the wordwrap function to break at about 75 chars:
Because you can supply your own break string, you can include the
>right there!If the original is already broken into lines, then simply replace existing line break: