Code: Select all
mystring = "%text%";
mystring2 = mystring.split(".");
mystring3 = mystring2.join(".<wbr>");
document.write(mystring3);Code: Select all
>
How does the raw string that %text%/description has look like? Looks like the JavaScript engine sees more than I anticipated it does.
Edit: Never mind, found the solution.