Hi peeps,
I'm currently using the following code..
but it is not fully replacing spaces relative to the way they were types in the text box.
I was just using one \s but that meant the text did not wrap in the DIV tag because there were no spaces in the string of text
ie.
there needs to be a space between words for the auto wrap to work, but where more than one space is in a row, to make it show in HTML you need to use the escape code.
how do i solve this dilema?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
I'm currently using the following code..
Code:
# Replace Spaces With HTML
$page[1]{'PageText'} =~ s/\s\s/\ /g;
but it is not fully replacing spaces relative to the way they were types in the text box.
I was just using one \s but that meant the text did not wrap in the DIV tag because there were no spaces in the string of text
ie.
Code:
this is a line of text that wont wrap in a table td tag
there needs to be a space between words for the auto wrap to work, but where more than one space is in a row, to make it show in HTML you need to use the escape code.
how do i solve this dilema?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.