seth
seth

Reputation: 145

displaying html tags as html in input field

Are there any possibility to do something like that? Or how I can simulate input field with possibility input usual text and display html tags as html?

Thanks.

Upvotes: 1

Views: 4068

Answers (2)

Esailija
Esailija

Reputation: 140230

You can use contenteditable attribute:

http://jsfiddle.net/AnWej/

<div contenteditable></div>​

Upvotes: 2

Bali Balo
Bali Balo

Reputation: 3408

You can use the HTML5 property contenteditable, if you can use this technology.
Exemple: http://jsfiddle.net/hZWWd/
I'm sure with some javascript you can add some buttons to put in bold or else for exemple (by adding some tags), and you have your own richtextbox.

Hope I didn't misunderstood your question.

Upvotes: 1

Related Questions