Wednesday, April 18, 2012

Want to have my textarea format it's readonly text like html

I have a read-only textarea that I display which acts as my old blog posts (which are editable in a field below it) and I'd like to be able to format it's contents somewhat. Ideally, I'd like it to look like HTML code, but at the very least, I'd like when the entered a URL, I'd like to display it as a href link.



Are there any best practices for this? Or do I have to process each and look for and format the items I want?



Thanks in advance.





No comments:

Post a Comment