Pizza Pro 11 Posted June 11, 2010 Report Share Posted June 11, 2010 Hi guys, Could anyone teach me how to replace all the line breaks in an article with <br><br> ? Thanks! 1 Quote Link to post Share on other sites
MiriamMB 63 Posted June 11, 2010 Report Share Posted June 11, 2010 try using the "$new line" constant 1 Quote Link to post Share on other sites
Pizza Pro 11 Posted June 11, 2010 Author Report Share Posted June 11, 2010 try using the "$new line" constant Do you mean $replace the $new line with <br><br>? If so, I tried it and it didn't work. Well, for the meantime, I am redirecting my text to a site that converts text to html and scraping it back until a solution is found... Quote Link to post Share on other sites
MiriamMB 63 Posted June 11, 2010 Report Share Posted June 11, 2010 what are you trying to do overall? Quote Link to post Share on other sites
Pizza Pro 11 Posted June 11, 2010 Author Report Share Posted June 11, 2010 I want to input my spun articles into a TinyMCE Editor. So I disabled the TinyMCE javascript, and enter the text into the box. However, because the TinyMCE Editor was removed, I need some HTML to keep the article in the right structure. So I need to input <br><br> for line breaks, or the line breaks will disappear without it. Quote Link to post Share on other sites
Guest Jim Posted June 11, 2010 Report Share Posted June 11, 2010 Using $replace is working fine on my end. Example: newline_replace.ubot If this doesn't work for you, it's probably to do with the content you're scraping (maybe it doesn't use a standard newline character? :S) so an example of what you're working with would be helpful in finding a solution. 1 Quote Link to post Share on other sites
Pizza Pro 11 Posted June 12, 2010 Author Report Share Posted June 12, 2010 Ok. I'm not sure if I coded it wrongly or not. I will have a look at this bot and see if it works for me. I might have done it wrong... Thanks for the help guys! Cheers,Infinity Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.