Textarea without wysiwyg editor but have nice format

Posted by dantan on Stack Overflow See other posts from Stack Overflow or by dantan
Published on 2010-05-29T14:39:30Z Indexed on 2010/05/29 14:42 UTC
Read the original article Hit count: 184

Filed under:
|

I have a texteare where someone can input text. I do not want a wysiwyg editor.

But what would be great:

Strip all tags, but make correct <p> and <br /> if user input has new lines. Additionally convert all urls, with or without http// or parameter to clickable links.

I cannot find a solution.

So you could type into the textarea:

........
This is a paragraph
This ist still in the paragraph

this is a new paragraph www.this-would-be-clickable

new paragraphp `<strong>`this will be shown not bold`</strong>`
........

thankfull for every advice

© Stack Overflow or respective owner

Related posts about php

Related posts about textarea