I'm trying to have a textarea
input field just like when you post a new StackOverflow question. You can have line spaces, you can bold text, you can insert link etc.
However, when you push some kind of button, all of that gets translated into a long HTML string (e.g., spaces become <p>
or <br>
, bold becomes <strong>
, link becomes <a>
). Is there a way to do this with some kind of JS plug in?