Quoting FredLooks: Quote: I notice that you have the construct <IMDb>tt1234567</IMDb> in your example Notes image. Two points, assuming that you are not really interested in the "tt1234567" showing up in the HTML output:
1. If you are using this to take advantage of phpDVDProfiler's ability to construct an IMDb link, then there is an alternative syntax: <IMDb number=1234567 /> does the same thing, but will not display in an HTML window.
2. Alternatively, you can use the same technique TomGaines suggested (for changing \r\n into <br>) to remove the "detritus": // replacing CRLF DP_Notes = DP_Notes.replace(/\r?\n/g, '<br/>'); // removing IMDb cruft DP_Notes = DP_Notes.replace(/<IMDb>[^<]*<\/IMDb>/gi, '');
Note that that last line ends with two single quotes side-by-each (single-quote single-quote right-parenthesis semicolon)(I wish there was some sort of teletype font that could be used to make this type of thing more clear) Thanks for that Fred. # 1 did is nice removing the HTML output as you stated. You mentioned the code that Tom had, but if i use just the // replacing CRLF DP_Notes = DP_Notes.replace(/\r?\n/g, '<br/>'); My understanding is that it will put back all the crlf formatting that I have done in the NOTES editbox. Once again here is the TEST html script ... with fixed single quote mark and here is what the output looks like in html window I am not getting any of the CRLF put back in. Here is what it looks like in the Personalize window Is it possible that I didn't put it in the right place? Is there something else i should do? Can you try this on yours and see if it works the same Thanks again DSig |